HBASE-27192 The retry number for TestSeparateClientZKCluster is too small (#4614)

Signed-off-by: GeorryHuang <huangzhuoyue@apache.org>
(cherry picked from commit 648bb6d0eba64f32a90e8b4df20fe50ffe80dd02)
This commit is contained in:
Duo Zhang 2022-07-12 19:08:41 +08:00
parent 74e83c840f
commit 4a1872b80c

View File

@ -77,9 +77,8 @@ public class TestSeparateClientZKCluster {
clientZkCluster = new MiniZooKeeperCluster(TEST_UTIL.getConfiguration());
clientZkCluster.setDefaultClientPort(clientZkPort);
clientZkCluster.startup(clientZkDir);
// reduce the retry number and start log counter
TEST_UTIL.getConfiguration().setInt(HConstants.HBASE_CLIENT_RETRIES_NUMBER, 2);
TEST_UTIL.getConfiguration().setInt("hbase.client.start.log.errors.counter", -1);
// start log counter
TEST_UTIL.getConfiguration().setInt("hbase.client.start.log.errors.counter", 3);
TEST_UTIL.getConfiguration().setInt("zookeeper.recovery.retry", 1);
// core settings for testing client ZK cluster
TEST_UTIL.getConfiguration().setClass(HConstants.CLIENT_CONNECTION_REGISTRY_IMPL_CONF_KEY,