Skip to content

Commit 0f01a02

Browse files
committed
HBASE-22351 Increase the wait time when creating table for TestProcedurePriority
1 parent 8c271c7 commit 0f01a02

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

hbase-server/src/test/java/org/apache/hadoop/hbase/master/procedure/TestProcedurePriority.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
import org.apache.hadoop.hbase.Cell;
2727
import org.apache.hadoop.hbase.HBaseClassTestRule;
2828
import org.apache.hadoop.hbase.HBaseTestingUtility;
29+
import org.apache.hadoop.hbase.HConstants;
2930
import org.apache.hadoop.hbase.TableName;
3031
import org.apache.hadoop.hbase.Waiter.ExplainingPredicate;
3132
import org.apache.hadoop.hbase.client.ColumnFamilyDescriptorBuilder;
@@ -107,6 +108,7 @@ public static void setUp() throws Exception {
107108
UTIL.getConfiguration().setLong(ProcedureExecutor.WORKER_KEEP_ALIVE_TIME_CONF_KEY, 5000);
108109
UTIL.getConfiguration().setInt(MasterProcedureConstants.MASTER_PROCEDURE_THREADS, 4);
109110
UTIL.getConfiguration().set(CoprocessorHost.REGION_COPROCESSOR_CONF_KEY, MyCP.class.getName());
111+
UTIL.getConfiguration().setInt(HConstants.REGION_SERVER_HANDLER_COUNT, 100);
110112
UTIL.startMiniCluster(3);
111113
CORE_POOL_SIZE =
112114
UTIL.getMiniHBaseCluster().getMaster().getMasterProcedureExecutor().getCorePoolSize();
@@ -118,7 +120,7 @@ public static void setUp() throws Exception {
118120
.setColumnFamily(ColumnFamilyDescriptorBuilder.of(CF)).build()));
119121
}
120122
for (Future<?> future : futures) {
121-
future.get(1, TimeUnit.MINUTES);
123+
future.get(3, TimeUnit.MINUTES);
122124
}
123125
UTIL.getAdmin().balance(true);
124126
UTIL.waitUntilNoRegionsInTransition();

0 commit comments

Comments
 (0)