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

DatanodeDescriptor block iterator should be BlockInfo based rather than Block.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.21.0
    • 0.21.0
    • namenode
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: