Uploaded image for project: 'JGroups'
  1. JGroups
  2. JGRP-2290

ArrayIndexOutOfBoundsException in FD_SOCK

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 4.0.15
    • 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.

              rhn-engineering-bban Bela Ban
              dberinde@redhat.com Dan Berindei (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: