[
https://issues.apache.org/jira/browse/HDFS-11681?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16450718#comment-16450718
]
Hudson commented on HDFS-11681:
-------------------------------
SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #14057 (See
[https://builds.apache.org/job/Hadoop-trunk-Commit/14057/])
HDFS-11681. DatanodeStorageInfo#getBlockIterator() should return an (xyao: rev
39e6331772c7bff7ea7370d6885a11317cea9e3d)
* (edit)
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestGetBlocks.java
* (edit)
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/BlockManager.java
* (edit)
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/DatanodeStorageInfo.java
> 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
> Priority: Major
> Fix For: 3.0.0-alpha4
>
> 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
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]