From c1b45a2c45f3bfeb2ec43e395cc2722975bfe39c Mon Sep 17 00:00:00 2001 From: Umesh Agashe Date: Mon, 15 May 2017 11:39:18 -0700 Subject: [PATCH] HBASE-18016 Changes to inherit default behavior of abort from StateMachineProcedure making TruncateTableProcedure abortable This will allow abort and manual cleanup of stuck instances of TruncateTableProcedure. Signed-off-by: Michael Stack --- .../hbase/master/procedure/TruncateTableProcedure.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/procedure/TruncateTableProcedure.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/procedure/TruncateTableProcedure.java index 2ab142aeaa0..e41b2cd5dea 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/procedure/TruncateTableProcedure.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/procedure/TruncateTableProcedure.java @@ -196,12 +196,6 @@ public class TruncateTableProcedure return TableOperationType.EDIT; } - @Override - public boolean abort(final MasterProcedureEnv env) { - // TODO: We may be able to abort if the procedure is not started yet. - return false; - } - @Override public void toStringClassDetails(StringBuilder sb) { sb.append(getClass().getSimpleName());