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

View File

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