Virajith Jalaparti created HDFS-11681:
-----------------------------------------

             Summary: DatanodeStorageInfo#getBlockIterator() should return an 
iterator to an unmodifiable set.
                 Key: HDFS-11681
                 URL: https://issues.apache.org/jira/browse/HDFS-11681
             Project: Hadoop HDFS
          Issue Type: Bug
            Reporter: Virajith Jalaparti


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}}.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-dev-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-h...@hadoop.apache.org

Reply via email to