virajjasani commented on code in PR #2286:
URL: https://github.com/apache/phoenix/pull/2286#discussion_r2345630760
##########
phoenix-core-client/src/main/java/org/apache/phoenix/query/ConnectionQueryServicesImpl.java:
##########
@@ -1748,7 +1748,9 @@ private void checkAndRetry(RetriableOperation op) throws
InterruptedException, T
}
}
numTries++;
- Thread.sleep(sleepInterval);
+ if (!success) {
+ Thread.sleep(sleepInterval);
+ }
} while (numTries < maxRetries && !success);
Review Comment:
Maybe Java should flag error for any do-while usage that is not appropriate
:)
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]