From 0f01a02c24e88fa2f6f62abc5789099528a8be4f Mon Sep 17 00:00:00 2001 From: zhangduo Date: Thu, 2 May 2019 21:09:26 +0800 Subject: [PATCH] HBASE-22351 Increase the wait time when creating table for TestProcedurePriority --- .../hadoop/hbase/master/procedure/TestProcedurePriority.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/master/procedure/TestProcedurePriority.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/master/procedure/TestProcedurePriority.java index 1cfe17bdb54d..36f31e0e2a2c 100644 --- a/hbase-server/src/test/java/org/apache/hadoop/hbase/master/procedure/TestProcedurePriority.java +++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/master/procedure/TestProcedurePriority.java @@ -26,6 +26,7 @@ import org.apache.hadoop.hbase.Cell; import org.apache.hadoop.hbase.HBaseClassTestRule; import org.apache.hadoop.hbase.HBaseTestingUtility; +import org.apache.hadoop.hbase.HConstants; import org.apache.hadoop.hbase.TableName; import org.apache.hadoop.hbase.Waiter.ExplainingPredicate; import org.apache.hadoop.hbase.client.ColumnFamilyDescriptorBuilder; @@ -107,6 +108,7 @@ public static void setUp() throws Exception { UTIL.getConfiguration().setLong(ProcedureExecutor.WORKER_KEEP_ALIVE_TIME_CONF_KEY, 5000); UTIL.getConfiguration().setInt(MasterProcedureConstants.MASTER_PROCEDURE_THREADS, 4); UTIL.getConfiguration().set(CoprocessorHost.REGION_COPROCESSOR_CONF_KEY, MyCP.class.getName()); + UTIL.getConfiguration().setInt(HConstants.REGION_SERVER_HANDLER_COUNT, 100); UTIL.startMiniCluster(3); CORE_POOL_SIZE = UTIL.getMiniHBaseCluster().getMaster().getMasterProcedureExecutor().getCorePoolSize(); @@ -118,7 +120,7 @@ public static void setUp() throws Exception { .setColumnFamily(ColumnFamilyDescriptorBuilder.of(CF)).build())); } for (Future future : futures) { - future.get(1, TimeUnit.MINUTES); + future.get(3, TimeUnit.MINUTES); } UTIL.getAdmin().balance(true); UTIL.waitUntilNoRegionsInTransition();