HDFS-15456. TestExternalStoragePolicySatisfier fails intermittently (#2299)

(cherry picked from commit de055ec8aa)
This commit is contained in:
LeonGao91 2020-10-10 09:38:36 -07:00 committed by Wei-Chiu Chuang
parent 9bbf1f87c9
commit 4db5643ff9
1 changed files with 2 additions and 0 deletions

View File

@ -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,