You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by GitBox <gi...@apache.org> on 2019/04/23 19:58:40 UTC

[GitHub] [accumulo] ctubbsii commented on a change in pull request #1125: Fixes #1119 - Improve Retry code

ctubbsii commented on a change in pull request #1125: Fixes #1119 - Improve Retry code
URL: https://github.com/apache/accumulo/pull/1125#discussion_r277845650
 
 

 ##########
 File path: core/src/main/java/org/apache/accumulo/fate/util/Retry.java
 ##########
 @@ -148,6 +158,7 @@ public long retriesCompleted() {
   public void waitForNextAttempt() throws InterruptedException {
     log.debug("Sleeping for {}ms before retrying operation", currentWait);
     sleep(currentWait);
+    waitIncrement *= waitFactor;
 
 Review comment:
   I'm not sure how useful it would be, but we could add a tiny bit of jitter here with a small random number.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services