HDFS-16321. Fix invalid config in TestAvailableSpaceRackFaultTolerantBPP (#3655). Contributed by guo.

Signed-off-by: Ayush Saxena <ayushsaxena@apache.org>
This commit is contained in:
GuoPhilipse 2021-11-14 22:29:15 +08:00 committed by Ayush Saxena
parent 5333e872e2
commit b11e017777
No known key found for this signature in database
GPG Key ID: D09AE71061AB564D
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ public class TestAvailableSpaceRackFaultTolerantBPP {
public static void setupCluster() throws Exception { public static void setupCluster() throws Exception {
conf = new HdfsConfiguration(); conf = new HdfsConfiguration();
conf.setFloat( conf.setFloat(
DFSConfigKeys.DFS_NAMENODE_AVAILABLE_SPACE_BLOCK_PLACEMENT_POLICY_BALANCED_SPACE_PREFERENCE_FRACTION_KEY, DFSConfigKeys.DFS_NAMENODE_AVAILABLE_SPACE_RACK_FAULT_TOLERANT_BLOCK_PLACEMENT_POLICY_BALANCED_SPACE_PREFERENCE_FRACTION_KEY,
0.6f); 0.6f);
String[] racks = new String[NUM_RACKS]; String[] racks = new String[NUM_RACKS];
for (int i = 0; i < NUM_RACKS; i++) { for (int i = 0; i < NUM_RACKS; i++) {