HDFS-15456. TestExternalStoragePolicySatisfier fails intermittently (#2299)
This commit is contained in:
parent
2de7240d4f
commit
de055ec8aa
@ -1046,6 +1046,8 @@ public void testChooseInSameDatanodeWithONESSDShouldNotChooseIfNoSpace()
|
|||||||
{StorageType.DISK, StorageType.SSD},
|
{StorageType.DISK, StorageType.SSD},
|
||||||
{StorageType.DISK, StorageType.DISK}};
|
{StorageType.DISK, StorageType.DISK}};
|
||||||
config.setLong("dfs.block.size", 2 * DEFAULT_BLOCK_SIZE);
|
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);
|
long dnCapacity = 1024 * DEFAULT_BLOCK_SIZE + (2 * DEFAULT_BLOCK_SIZE - 1);
|
||||||
try {
|
try {
|
||||||
hdfsCluster = startCluster(config, diskTypes, NUM_OF_DATANODES,
|
hdfsCluster = startCluster(config, diskTypes, NUM_OF_DATANODES,
|
||||||
|
Loading…
Reference in New Issue
Block a user