diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/balancer/TestBalancerWithHANameNodes.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/balancer/TestBalancerWithHANameNodes.java index 185df1246d3..b0ee04e00f1 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/balancer/TestBalancerWithHANameNodes.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/balancer/TestBalancerWithHANameNodes.java @@ -198,6 +198,7 @@ public class TestBalancerWithHANameNodes { TestBalancer.initConf(conf); // Avoid the same FS being reused between tests conf.setBoolean("fs.hdfs.impl.disable.cache", true); + conf.setBoolean(HdfsClientConfigKeys.Failover.RANDOM_ORDER, false); MiniQJMHACluster qjmhaCluster = null; try {