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

DFSNodesStatus() should sort data nodes.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.4.0
    • 0.5.0
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: