[jboss-jira] [JBoss JIRA] (JGRP-2448) FD_SOCK IndexOutOfBoundsException

Bela Ban (Jira) issues at jboss.org
Wed Feb 5 03:28:25 EST 2020


     [ https://issues.redhat.com/browse/JGRP-2448?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bela Ban resolved JGRP-2448.
----------------------------
    Resolution: Done


Synchronized access to {{pingable_mbrs}}.
Fixed in 4.x and forward-ported to master. 

> FD_SOCK IndexOutOfBoundsException
> ---------------------------------
>
>                 Key: JGRP-2448
>                 URL: https://issues.redhat.com/browse/JGRP-2448
>             Project: JGroups
>          Issue Type: Bug
>    Affects Versions: 4.1.8
>            Reporter: Dan Berindei
>            Assignee: Bela Ban
>            Priority: Minor
>             Fix For: 5.0, 4.2.0
>
>
> {{PD_SOCK.pickNext()}} should iterate up to {{size - 1}}:
> {noformat}
> 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)
> {noformat}



--
This message was sent by Atlassian Jira
(v7.13.8#713008)


More information about the jboss-jira mailing list