HDFS-16224. testBalancerWithObserverWithFailedNode times out (#3425)
This commit is contained in:
parent
71a601241c
commit
deb52cdcbb
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue