From de055ec8aad1b5a131d366aa5395f2904f0f6ecd 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) --- .../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 e8b15c8e94..77922a0991 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 @@ -1046,6 +1046,8 @@ public void testChooseInSameDatanodeWithONESSDShouldNotChooseIfNoSpace() {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,