HDFS-15456. TestExternalStoragePolicySatisfier fails intermittently (#2299)
(cherry picked from commit de055ec8aa
)
This commit is contained in:
parent
9bbf1f87c9
commit
4db5643ff9
|
@ -1019,6 +1019,8 @@ public class TestExternalStoragePolicySatisfier {
|
||||||
{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