From 4db5643ff943b45d4192bb67145957c3a614209d Mon Sep 17 00:00:00 2001 From: LeonGao91 Date: Sat, 10 Oct 2020 09:38:36 -0700 Subject: [PATCH] HDFS-15456. TestExternalStoragePolicySatisfier fails intermittently (#2299) (cherry picked from commit de055ec8aad1b5a131d366aa5395f2904f0f6ecd) --- .../hdfs/server/sps/TestExternalStoragePolicySatisfier.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/sps/TestExternalStoragePolicySatisfier.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/sps/TestExternalStoragePolicySatisfier.java index e3b775aa7fa..0a61d58d162 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/sps/TestExternalStoragePolicySatisfier.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/sps/TestExternalStoragePolicySatisfier.java @@ -1019,6 +1019,8 @@ public class TestExternalStoragePolicySatisfier { {StorageType.DISK, StorageType.SSD}, {StorageType.DISK, StorageType.DISK}}; config.setLong("dfs.block.size", 2 * DEFAULT_BLOCK_SIZE); + config.setBoolean(DFSConfigKeys.DFS_NAMENODE_REDUNDANCY_CONSIDERLOAD_KEY, + false); long dnCapacity = 1024 * DEFAULT_BLOCK_SIZE + (2 * DEFAULT_BLOCK_SIZE - 1); try { hdfsCluster = startCluster(config, diskTypes, NUM_OF_DATANODES,