[
https://issues.apache.org/jira/browse/HDFS-5267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13779719#comment-13779719
]
Junping Du commented on HDFS-5267:
----------------------------------
Thanks Chris for confirmation. Already move to HDFS and deliver a quick patch
for it. LightWeightLinkedSet inherit "modification" field from
LightWeightHashSet, so only one tiny change here.
> Modification field in LightWeightHashSet and LightWeightLinkedSet should't be
> volatile which cause wrong expectation on thread-safe visibility
> ----------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: HDFS-5267
> URL: https://issues.apache.org/jira/browse/HDFS-5267
> Project: Hadoop HDFS
> Issue Type: Bug
> Reporter: Junping Du
> Assignee: Junping Du
> Fix For: 2.3.0
>
> Attachments: HADOOP-9980.patch, HDFS-5276.patch
>
>
> LightWeightGSet should have a volatile modification field (like:
> LightWeightHashSet or LightWeightLinkedSet) that is used to detect updates
> while iterating so they can throw a ConcurrentModificationException.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira