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

FD_SOCK IndexOutOfBoundsException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 5.0.0.Alpha3, 4.2.0
    • 4.1.8
    • None

      PD_SOCK.pickNext() should iterate up to size - 1:

      java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0
      	at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64)
      	at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70)
      	at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:248)
      	at java.base/java.util.Objects.checkIndex(Objects.java:372)
      	at java.base/java.util.ArrayList.get(ArrayList.java:458)
      	at java.base/java.util.Collections$SynchronizedList.get(Collections.java:2424)
      	at org.jgroups.util.Util.pickNext(Util.java:2686)
      	at org.jgroups.protocols.FD_SOCK.determinePingDest(FD_SOCK.java:762)
      	at org.jgroups.protocols.FD_SOCK.run(FD_SOCK.java:408)
      	at java.base/java.lang.Thread.run(Thread.java:834)
      

              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: