Apache9 commented on code in PR #5502:
URL: https://github.com/apache/hbase/pull/5502#discussion_r1410702906


##########
hbase-server/src/main/java/org/apache/hadoop/hbase/master/procedure/DeleteTableProcedure.java:
##########
@@ -133,7 +137,13 @@ protected Flow executeFromState(final MasterProcedureEnv 
env, DeleteTableState s
       if (isRollbackSupported(state)) {
         setFailure("master-delete-table", e);
       } else {
-        LOG.warn("Retriable error trying to delete table=" + getTableName() + 
" state=" + state, e);
+        if (retryCounter == null) {
+          retryCounter = 
ProcedureUtil.createRetryCounter(env.getMasterConfiguration());
+        }
+        long sleepTime = retryCounter.getBackoffTimeAndIncrementAttempts();
+        LOG.warn("Retriable error trying to delete table=" + getTableName() + 
" state=" + state
+          + ", Will sleep " + sleepTime / 1000 + " secs and try again later", 
e);
+        Threads.sleep(sleepTime);

Review Comment:
   The suspend method is in the Procedure class, which is the parent class for 
all procedures.



-- 
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]

Reply via email to