jugomezv commented on code in PR #10777: URL: https://github.com/apache/pinot/pull/10777#discussion_r1204815318
########## pinot-spi/src/main/java/org/apache/pinot/spi/utils/retry/RetryPolicy.java: ########## @@ -33,7 +33,8 @@ public interface RetryPolicy { * @param operation The operation to attempt, which returns true on success and false on failure. * @throws AttemptsExceededException * @throws RetriableOperationException + * @return the number of attempts used for the operation. 0 means the first try was successful. */ - void attempt(Callable<Boolean> operation) + int attempt(Callable<Boolean> operation) Review Comment: Done -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org