in hbase-oss/src/main/java/org/apache/hadoop/hbase/oss/sync/TreeLockManager.java [235:252]
private boolean retryBackoff(int retries) throws IOException {
RetryAction action;
try {
action = retryPolicy.shouldRetry(null, retries, 0, true);
} catch (Exception e) {
throw new IOException("Unexpected exception during locking", e);
}
if (action.action == RetryDecision.FAIL) {
throw new IOException("Exceeded " + retries + " retries for locking");
}
LOG.trace("Sleeping {}ms before next retry", action.delayMillis);
try {
Thread.sleep(action.delayMillis);
} catch (InterruptedException e) {
throw new IOException("Interrupted during locking", e);
}
return true;
}