From 1109ebb617c4f6e30468109d106c335e5b248394 Mon Sep 17 00:00:00 2001 From: zhangduo Date: Thu, 27 Sep 2018 20:25:06 +0800 Subject: [PATCH] HBASE-21244 Skip persistence when retrying for assignment related procedures --- .../hbase/master/assignment/TransitRegionStateProcedure.java | 1 + .../hbase/master/procedure/ReopenTableRegionsProcedure.java | 1 + 2 files changed, 2 insertions(+) diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/assignment/TransitRegionStateProcedure.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/assignment/TransitRegionStateProcedure.java index f6d22fa8ada..dd8415a905a 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/assignment/TransitRegionStateProcedure.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/assignment/TransitRegionStateProcedure.java @@ -329,6 +329,7 @@ public class TransitRegionStateProcedure backoff / 1000, this, regionNode.toShortString(), e); setTimeout(Math.toIntExact(backoff)); setState(ProcedureProtos.ProcedureState.WAITING_TIMEOUT); + skipPersistence(); throw new ProcedureSuspendedException(); } } diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/procedure/ReopenTableRegionsProcedure.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/procedure/ReopenTableRegionsProcedure.java index 24b1e5ceaf6..5b36f30187a 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/procedure/ReopenTableRegionsProcedure.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/procedure/ReopenTableRegionsProcedure.java @@ -122,6 +122,7 @@ public class ReopenTableRegionsProcedure regions.size(), tableName, backoff / 1000); setTimeout(Math.toIntExact(backoff)); setState(ProcedureProtos.ProcedureState.WAITING_TIMEOUT); + skipPersistence(); throw new ProcedureSuspendedException(); default: throw new UnsupportedOperationException("unhandled state=" + state);