From ca0d9f3cd29cd63ab45bfbb2540245cd0b4c1e4c Mon Sep 17 00:00:00 2001 From: Duo Zhang Date: Mon, 30 Sep 2019 11:48:50 +0800 Subject: [PATCH] HBASE-23079 RegionRemoteProcedureBase should override setTimeoutFailure (#672) Signed-off-by: Guanghao Zhang --- .../assignment/RegionRemoteProcedureBase.java | 7 + .../TestOpenRegionProcedureBackoff.java | 120 ++++++++++++++++++ 2 files changed, 127 insertions(+) create mode 100644 hbase-server/src/test/java/org/apache/hadoop/hbase/master/assignment/TestOpenRegionProcedureBackoff.java diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/assignment/RegionRemoteProcedureBase.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/assignment/RegionRemoteProcedureBase.java index a3c338257e8..ee37746b3b0 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/assignment/RegionRemoteProcedureBase.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/assignment/RegionRemoteProcedureBase.java @@ -324,6 +324,13 @@ public abstract class RegionRemoteProcedureBase extends Procedure future = admin.createTable(TableDescriptorBuilder.newBuilder(NAME) + .setColumnFamily(ColumnFamilyDescriptorBuilder.of(CF)).build()); + assertBackoffIncrease(); + FAIL = false; + future.get(); + UTIL.waitTableAvailable(NAME); + } +}