Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-7878

Regression HADOOP-7777 switch changes break HDFS tests when the isSingleSwitch() predicate is used

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.23.0, 0.24.0
    • Fix Version/s: 0.23.1
    • Component/s: util
    • Labels:

      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

        1. HADOOP-7878.patch
          3 kB
          Steve Loughran
        2. HADOOP-7878.patch
          3 kB
          Steve Loughran

          Issue Links

            Activity

              People

              • Assignee:
                stevel@apache.org Steve Loughran
                Reporter:
                stevel@apache.org Steve Loughran
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0.5h
                  0.5h
                  Remaining:
                  Remaining Estimate - 0.5h
                  0.5h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified