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

DFSNodesStatus() should sort data nodes.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.4.0
    • Fix Version/s: 0.5.0
    • Component/s: None
    • Labels:
      None

      Description

      HADOOP-392 introduced a new TreeMap member (datanodeMapByName) in the name node.
      It is used solely for reporting the data nodes in the UI sorted by their names.
      I think it is quite inefficient both time and space-wise to support an excessive
      data structure just for that.
      Suppose the UI will also require sorting by last heartbeat and/or by the available space....
      I think DFSNodesStatus() should just sort the original datanodeMap before returning the list.

        Attachments

        1. refactor_datanodeinfo.patch
          2 kB
          Devaraj Das
        2. refactor_nodestatus.patch
          7 kB
          Devaraj Das
        3. refactor_nodestatus.patch
          7 kB
          Devaraj Das

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              shv Konstantin Shvachko
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: