-
Bug
-
Resolution: Done
-
Major
-
4.0.13
-
None
23:30:00.046 [INFO] Running org.infinispan.test.hibernate.cache.commons.entity.EntityRegionAccessStrategyTest Exception in thread "FD_SOCK pinger-10,EntityRegionAccessStrategyTest-NodeJ-23765" java.lang.ArrayIndexOutOfBoundsException: 0 at java.util.concurrent.CopyOnWriteArrayList.get(CopyOnWriteArrayList.java:388) at java.util.concurrent.CopyOnWriteArrayList.get(CopyOnWriteArrayList.java:397) at org.jgroups.util.Util.pickNext(Util.java:2656) at org.jgroups.protocols.FD_SOCK.determinePingDest(FD_SOCK.java:762) at org.jgroups.protocols.FD_SOCK.run(FD_SOCK.java:407) at java.lang.Thread.run(Thread.java:748)
The pingable_mbrs and suspected_mbrs collections are not read that often, so I suggest using regular synchronization instead of CopyOnWriteList.