Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
0.23.0, 0.24.0
Description
This doesn't show up until you apply the HDFS-2492 patch, but the attempt to make the StaticMapping topology clever by deciding if it is single rack or multi rack based on its rack->node mapping breaks the HDFS TestBlocksWithNotEnoughRacks test. Why? Because the racks go in after the switch topology is cached by the BlockManager, which assumes the system is always single-switch.
Fix: default to assuming multi-switch; remove the intelligence, add a setter for anyone who really wants to simulate single-switch racks.
Test: verify that a newly created simple mapping is multi switch
Attachments
Attachments
Issue Links
- is depended upon by
-
HDFS-2492 BlockManager cross-rack replication checks only work for ScriptBasedMapping
- Open
- relates to
-
HADOOP-7777 Implement a base class for DNSToSwitchMapping implementations that can offer extra topology information
- Closed