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 Bug
    • Status: Closed
    • Priority: Minor 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.

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

        Issue Links

          Activity

          Junping Du created issue -
          Junping Du made changes -
          Field Original Value New Value
          Attachment HADOOP-8144-1.patch [ 12517255 ]
          Junping Du made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Target Version/s 0.23.1 [ 12318884 ]
          Labels patch
          Junping Du made changes -
          Attachment HADOOP-8144-v2.patch [ 12518889 ]
          Eli Collins made changes -
          Attachment hadoop-8144.txt [ 12522341 ]
          Eli Collins made changes -
          Assignee Junping Du [ djp ]
          Eli Collins made changes -
          Attachment hadoop-8144.txt [ 12522348 ]
          Eli Collins made changes -
          Link This issue blocks HDFS-3258 [ HDFS-3258 ]
          Eli Collins made changes -
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Hadoop Flags Reviewed [ 10343 ]
          Target Version/s 0.23.1 [ 12318884 ]
          Fix Version/s 2.0.0 [ 12320352 ]
          Resolution Fixed [ 1 ]
          Arun C Murthy made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Nicolas Liochon made changes -
          Link This issue is related to HBASE-5843 [ HBASE-5843 ]
          Robert Joseph Evans made changes -
          Fix Version/s 0.23.3 [ 12320059 ]
          Arun C Murthy made changes -
          Fix Version/s 2.0.2-alpha [ 12322473 ]
          Fix Version/s 2.0.0-alpha [ 12320352 ]
          Gavin made changes -
          Link This issue blocks HDFS-3258 [ HDFS-3258 ]
          Gavin made changes -
          Link This issue is depended upon by HDFS-3258 [ HDFS-3258 ]

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development