[
https://issues.apache.org/jira/browse/HDFS-11681?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Chris Douglas reassigned HDFS-11681:
------------------------------------
Assignee: Virajith Jalaparti
> 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
> Assignee: Virajith Jalaparti
> Attachments: HDFS-11681.001.patch, HDFS-11681.002.patch
>
>
> 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: [email protected]
For additional commands, e-mail: [email protected]