Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-12272

chooseRemoteRack() semantics broken in trunk

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Invalid
    • 3.0.0-alpha3
    • None
    • block placement
    • None

    Description

      The chooseRemoteRack() method in the default block placement policy was designed to pick from maximum number of racks. E.g. If asked to pick 2 and there are 2 or more racks available, the two will be on different racks. It wasn't implicit or accidental semantics. There was a specific logic in chooseRandom() that makes it happen.

      This behavior is broken after HDFS-11530 as this logic was removed from chooseRandom(). Now the result is unpredictable. Sometimes the replicas end up in the same rack.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kihwal Kihwal Lee
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: