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

ParticipantGmsImpl.suspected_mbrs is not threadsafe

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 5.5.3
    • 5.5.2
    • None
    • Important

      Causes issues such as:

      2026-01-13T09:45:07.821169246Z jgroups-2600,EnableSuspectEventsTest,node-2 ERROR node-2: failed processsing requests: java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0
      java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0
          at java.base/java.util.LinkedHashMap.keysToArray(LinkedHashMap.java:674)
          at java.base/java.util.LinkedHashMap.keysToArray(LinkedHashMap.java:662)
          at java.base/java.util.HashSet.toArray(HashSet.java:377)
          at java.base/java.util.ArrayList.<init>(ArrayList.java:182)
          at org.jgroups.protocols.pbcast.GMS.computeNewMembership(GMS.java:472)
          at org.jgroups.protocols.pbcast.ParticipantGmsImpl.wouldIBeCoordinator(ParticipantGmsImpl.java:127)
          at org.jgroups.protocols.pbcast.ParticipantGmsImpl.handleMembershipChange(ParticipantGmsImpl.java:91)
          at org.jgroups.protocols.pbcast.GMS.process(GMS.java:1216)
          at org.jgroups.protocols.pbcast.ViewHandler.process(ViewHandler.java:239)
          at org.jgroups.protocols.pbcast.ViewHandler.add(ViewHandler.java:70)
          at org.jgroups.protocols.pbcast.GMS.up(GMS.java:779)
          at org.jgroups.stack.Protocol.up(Protocol.java:350)
          at org.jgroups.protocols.ReliableMulticast.up(ReliableMulticast.java:532)
          at org.jgroups.stack.Protocol.up(Protocol.java:350)
          at org.jgroups.stack.Protocol.up(Protocol.java:350)
          at org.jgroups.protocols.Discovery.up(Discovery.java:300)
          at org.jgroups.stack.Protocol.up(Protocol.java:350)
          at org.jgroups.protocols.BasicTCP.lambda$connectionClosed$0(BasicTCP.java:225)
          at java.base/java.util.concurrent.ThreadPerTaskExecutor$TaskRunner.run(ThreadPerTaskExecutor.java:291)
          at java.base/java.lang.VirtualThread.run(VirtualThread.java:456)
      

              rhn-engineering-rhusar Radoslav Husar
              pferraro@redhat.com Paul Ferraro
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: