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

pseudoSortByDistance in NetworkTopology doesn't work properly if no local node and first node is local rack node

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0.0, 0.23.0
    • Fix Version/s: 0.23.3, 2.0.2-alpha
    • Component/s: io
    • Labels:
    • Hadoop Flags:
      Reviewed

      Description

      pseudoSortByDistance in NetworkTopology.java should sort nodes according to its distance with reader as local node, local rack node, ...
      But if there is no local node with reader in nodes and the first node is local rack node with reader, then it will put a random node at position 0.

        Attachments

        1. HADOOP-8144-v2.patch
          2 kB
          Junping Du
        2. HADOOP-8144-1.patch
          2 kB
          Junping Du
        3. hadoop-8144.txt
          2 kB
          Eli Collins
        4. hadoop-8144.txt
          1 kB
          Eli Collins

          Issue Links

            Activity

              People

              • Assignee:
                djp Junping Du
                Reporter:
                djp Junping Du
              • Votes:
                0 Vote for this issue
                Watchers:
                10 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: