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

DatanodeStorageInfo#getBlockIterator() should return an iterator to an unmodifiable set.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0-alpha4
    • None
    • None
    • Reviewed

    Description

      The iterator from DatanodeStorageInfo#getBlockIterator() should not be modifiable. Otherwise, calling remove on the iterator will remove blocks from DatanodeStorageInfo.blocks, a function that has to be performed by calling DatanodeStorageInfo#removeBlock.

      Attachments

        1. HDFS-11681.002.patch
          4 kB
          Virajith Jalaparti
        2. HDFS-11681.001.patch
          4 kB
          Virajith Jalaparti

        Issue Links

          Activity

            People

              virajith Virajith Jalaparti
              virajith Virajith Jalaparti
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: