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

Hrishikesh Gadre commented on HDDS-1752:
----------------------------------------

[~msingh] The patch for HDDS-1372 changed the type of set implementation used 
to store the container replicas ([https://github.com/apache/hadoop/pull/682]). 
In Ozone 0.4.0 we were using HashSet (which is not thread safe). This patch 
changed the implementation to use concurrent hash set (which is thread safe). 
Hence after this change we will not see the exception mentioned in the 
description of this jira. Can you please take a look and comment?

> ConcurrentModificationException while handling DeadNodeHandler event
> --------------------------------------------------------------------
>
>                 Key: HDDS-1752
>                 URL: https://issues.apache.org/jira/browse/HDDS-1752
>             Project: Hadoop Distributed Data Store
>          Issue Type: Bug
>          Components: SCM
>    Affects Versions: 0.4.0
>            Reporter: Mukul Kumar Singh
>            Assignee: Hrishikesh Gadre
>            Priority: Major
>              Labels: MiniOzoneChaosCluster
>
> ConcurrentModificationException while handling DeadNodeHandler event
> {code}
> 2019-07-02 19:29:25,190 ERROR events.SingleThreadExecutor 
> (SingleThreadExecutor.java:lambda$onMessage$1(88)) - Error on execution 
> message 56591ec5-c9e4-416c-9a36-db0507739fe5{ip: 192.168.0.2, host: 192.16
> 8.0.2, networkLocation: /default-rack, certSerialId: null}
> java.util.ConcurrentModificationException
>         at java.util.HashMap$HashIterator.nextNode(HashMap.java:1442)
>         at java.util.HashMap$KeyIterator.next(HashMap.java:1466)
>         at java.lang.Iterable.forEach(Iterable.java:74)
>         at 
> java.util.Collections$UnmodifiableCollection.forEach(Collections.java:1080)
>         at 
> org.apache.hadoop.hdds.scm.node.DeadNodeHandler.lambda$destroyPipelines$1(DeadNodeHandler.java:99)
>         at java.util.Optional.ifPresent(Optional.java:159)
>         at 
> org.apache.hadoop.hdds.scm.node.DeadNodeHandler.destroyPipelines(DeadNodeHandler.java:98)
>         at 
> org.apache.hadoop.hdds.scm.node.DeadNodeHandler.onMessage(DeadNodeHandler.java:78)
>         at 
> org.apache.hadoop.hdds.scm.node.DeadNodeHandler.onMessage(DeadNodeHandler.java:44)
>         at 
> org.apache.hadoop.hdds.server.events.SingleThreadExecutor.lambda$onMessage$1(SingleThreadExecutor.java:85)
>         at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>         at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>         at java.lang.Thread.run(Thread.java:748)
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to