HDFS-15671. testBalancerRPCDelayQpsDefault fails intermittently (#3097)

This commit is contained in:
Ahmed Hussein 2021-06-11 11:00:42 -05:00 committed by GitHub
parent 51ebf7b2a0
commit 352949d070
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 3 deletions

View File

@ -655,9 +655,11 @@ public class TestBalancer {
int numOfDatanodes = capacities.length;
try {
cluster = new MiniDFSCluster.Builder(conf)
.numDataNodes(0)
.build();
cluster = new MiniDFSCluster
.Builder(conf)
.numDataNodes(0)
.setNNRedundancyConsiderLoad(false)
.build();
cluster.getConfiguration(0).setInt(DFSConfigKeys.DFS_REPLICATION_KEY,
DFSConfigKeys.DFS_REPLICATION_DEFAULT);
conf.setInt(DFSConfigKeys.DFS_REPLICATION_KEY,