hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-11681) DatanodeStorageInfo#getBlockIterator() should return an iterator to an unmodifiable set.
Date Thu, 11 May 2017 05:52:04 GMT

    [ https://issues.apache.org/jira/browse/HDFS-11681?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16005931#comment-16005931
] 

Hudson commented on HDFS-11681:
-------------------------------

SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #11722 (See [https://builds.apache.org/job/Hadoop-trunk-Commit/11722/])
HDFS-11681. DatanodeStorageInfo#getBlockIterator() should return an (cdouglas: rev 51b671ef1844069888f976cd16f66c88f9bbc7de)
* (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
* (edit) hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestGetBlocks.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
>             Fix For: 3.0.0-alpha3
>
>         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: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org


Mime
View raw message