HDFS-15456. TestExternalStoragePolicySatisfier fails intermittently (#2299)

This commit is contained in:
LeonGao91 2020-10-10 09:38:36 -07:00 committed by GitHub
parent 2de7240d4f
commit de055ec8aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -1046,6 +1046,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,