Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-546

DatanodeDescriptor block iterator should be BlockInfo based rather than Block.

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.21.0
    • Fix Version/s: 0.21.0
    • Component/s: namenode
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      DatanodeDescriptor.BlockIterator currently implements Iterator<Block>. I need to change it to implement Iterator<BlockInfo> instead. Otherwise, I cannot filter out blocks under construction in order to exclude them from balancing, as Hairong suggested in HDFS-517.

        Attachments

        1. BlockIterator.patch
          3 kB
          Konstantin Shvachko

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: