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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.0.0, 0.23.0
    • 0.23.3, 2.0.2-alpha
    • io
    • 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-1.patch
          2 kB
          Junping Du
        2. HADOOP-8144-v2.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

              junping_du Junping Du
              junping_du Junping Du
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: