You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2018/04/24 20:50:06 UTC

[jira] [Commented] (HDFS-11681) DatanodeStorageInfo#getBlockIterator() should return an iterator to an unmodifiable set.

    [ 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: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org