HBASE-18627 Fix TestRegionServerReadRequestMetrics (Chia-Ping Tsai)
Project: http://git-wip-us.apache.org/repos/asf/hbase/repo Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/bf343da4 Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/bf343da4 Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/bf343da4 Branch: refs/heads/HBASE-18467 Commit: bf343da4a445cd9ed1da953e2b24861a5b869846 Parents: 078a6be Author: Michael Stack <st...@apache.org> Authored: Mon Aug 21 15:38:15 2017 -0700 Committer: Michael Stack <st...@apache.org> Committed: Mon Aug 21 15:38:15 2017 -0700 ---------------------------------------------------------------------- .../hbase/regionserver/TestRegionServerReadRequestMetrics.java | 2 ++ 1 file changed, 2 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hbase/blob/bf343da4/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestRegionServerReadRequestMetrics.java ---------------------------------------------------------------------- diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestRegionServerReadRequestMetrics.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestRegionServerReadRequestMetrics.java index 297aa50..2cd1559 100644 --- a/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestRegionServerReadRequestMetrics.java +++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestRegionServerReadRequestMetrics.java @@ -89,6 +89,8 @@ public class TestRegionServerReadRequestMetrics { @BeforeClass public static void setUpOnce() throws Exception { // Default starts one regionserver only. + TEST_UTIL.getConfiguration().setBoolean(LoadBalancer.TABLES_ON_MASTER, true); + TEST_UTIL.getConfiguration().setBoolean(LoadBalancer.SYSTEM_TABLES_ON_MASTER, true); TEST_UTIL.startMiniCluster(); admin = TEST_UTIL.getAdmin(); serverNames = admin.getClusterStatus().getServers();