From e8504ba817b4f0a4afc5029ed565f23c7ac6c3b7 Mon Sep 17 00:00:00 2001 From: Duo Zhang Date: Fri, 1 May 2020 20:34:42 +0800 Subject: [PATCH] HBASE-24277 TestZooKeeper is flaky (#1617) --- .../src/test/java/org/apache/hadoop/hbase/TestZooKeeper.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/TestZooKeeper.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/TestZooKeeper.java index b1bff51fd1b..4bbb3ed9c17 100644 --- a/hbase-server/src/test/java/org/apache/hadoop/hbase/TestZooKeeper.java +++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/TestZooKeeper.java @@ -76,9 +76,11 @@ public class TestZooKeeper { Configuration conf = TEST_UTIL.getConfiguration(); TEST_UTIL.startMiniDFSCluster(2); TEST_UTIL.startMiniZKCluster(); + conf.set(HConstants.CLIENT_CONNECTION_REGISTRY_IMPL_CONF_KEY, + HConstants.ZK_CONNECTION_REGISTRY_CLASS); conf.setInt(HConstants.ZK_SESSION_TIMEOUT, 1000); conf.setClass(HConstants.HBASE_MASTER_LOADBALANCER_CLASS, MockLoadBalancer.class, - LoadBalancer.class); + LoadBalancer.class); TEST_UTIL.startMiniDFSCluster(2); }