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

Signed-off-by: GeorryHuang <huangzhuoyue@apache.org>
This commit is contained in:
Duo Zhang 2022-07-12 19:08:41 +08:00 committed by GitHub
parent 886e31952f
commit 648bb6d0eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

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