org.jgroups.tests.RouterStubGet: Exception in thread "NioClient.Acceptor [srv=a.b.c.d:p]" java.util.ConcurrentModificationException #823
Closed
ah-ping-luk
started this conversation in
General
Replies: 2 comments
-
Thanks, I created https://issues.redhat.com/browse/JGRP-2820 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Fixed in master (5.4) and backport to 5.3.11 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I try to run the helper utility for checking healthiness of the clusters (via TUNNEL / gossip router)
java org.jgroups.tests.RouterStubGet -nio true -host $GOSSIP_HOST -port $GOSSIP_PORT -cluster ISPN
for a cluster with 2 or more member, there will be java.util.ConcurrentModificationException.
For example jgroups version 5.2.23:
After a look, there is a bug in the concurrent modification of the Iterator
javadocs state the selectedKeys is not threadsafe: https://docs.oracle.com/javase/8/docs/api/java/nio/channels/Selector.html#selectedKeys--
I have a look of the jgroups source code, this issue seems exists in latest jgroups version 5.3.10
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions