hadoop-hdfs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Virajith Jalaparti (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HDFS-11681) DatanodeStorageInfo#getBlockIterator() should return an iterator to an unmodifiable set.
Date Wed, 19 Apr 2017 18:06:41 GMT
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-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org


Mime
View raw message