sguggilam commented on a change in pull request #1755: URL: https://github.com/apache/hbase/pull/1755#discussion_r432207528
########## File path: hbase-server/src/main/java/org/apache/hadoop/hbase/master/AssignmentManager.java ########## @@ -2079,16 +2085,29 @@ private void unassign(final HRegionInfo region, } if (logRetries) { - LOG.info("Server " + server + " returned " + t + " for " - + region.getRegionNameAsString() + ", try=" + i - + " of " + this.maximumAttempts, t); + LOG.info("Server " + server + " returned " + t + " for " + region.getRegionNameAsString() + + ", try=" + i + " of " + this.maximumAttempts, + t); // Presume retry or server will expire. } } } - // Run out of attempts - if (state != null) { - regionStates.updateRegionState(region, State.FAILED_CLOSE); + + long sleepTime = backoffPolicy.getBackoffTime(retryConfig, Review comment: The current code does the sleep in the current thread where it is handling the region already in transition kind of case where there is a max wait time and hence they just sleep for every 100ms and keep retrying before the max ttime ends. In our case we definitely know that we don't want to retry before a configured backoff time, so we can as well schedule it later ---------------------------------------------------------------- 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: us...@infra.apache.org