HDFS-16224. testBalancerWithObserverWithFailedNode times out (#3425)

This commit is contained in:
LeonGao 2021-09-16 23:59:36 -07:00 committed by GitHub
parent 71a601241c
commit deb52cdcbb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -17,6 +17,7 @@
*/
package org.apache.hadoop.hdfs.server.balancer;
import static org.apache.hadoop.fs.CommonConfigurationKeysPublic.IPC_CLIENT_CONNECT_MAX_RETRIES_KEY;
import static org.apache.hadoop.hdfs.DFSConfigKeys.DFS_HA_ALLOW_STALE_READ_DEFAULT;
import static org.apache.hadoop.hdfs.DFSConfigKeys.DFS_HA_ALLOW_STALE_READ_KEY;
import static org.apache.hadoop.hdfs.DFSConfigKeys.DFS_HA_TAILEDITS_PERIOD_KEY;
@ -205,6 +206,11 @@ public class TestBalancerWithHANameNodes {
conf.setBoolean("fs.hdfs.impl.disable.cache", true);
conf.setBoolean(HdfsClientConfigKeys.Failover.RANDOM_ORDER, false);
// Reduce datanode retry so cluster shutdown won't be blocked.
if (withObserverFailure) {
conf.setInt(IPC_CLIENT_CONNECT_MAX_RETRIES_KEY, 2);
}
MiniQJMHACluster qjmhaCluster = null;
try {
qjmhaCluster = HATestUtil.setUpObserverCluster(conf, 2,