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

IndexOutOfBoundsException when trace logging

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Minor
    • 3.6.11
    • 3.6.9
    • None

    Description

      When running with trace logging, I got couple of these STs:

      Exception in thread "OOB-1,test-NodeE-13479" java.lang.IndexOutOfBoundsException: Index: 4, Size: 2
      	at java.util.ArrayList.rangeCheck(ArrayList.java:653)
      	at java.util.ArrayList.get(ArrayList.java:429)
      	at org.jgroups.protocols.pbcast.NAKACK2.handleMessages(NAKACK2.java:868)
      	at org.jgroups.protocols.pbcast.NAKACK2.up(NAKACK2.java:705)
      	at org.jgroups.stack.Protocol.up(Protocol.java:425)
      	at org.jgroups.protocols.TP.passBatchUp(TP.java:1600)
      	at org.jgroups.protocols.TP$BatchHandler.run(TP.java:1820)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at java.lang.Thread.run(Thread.java:745)
      

      Seems that part of the list of received messages is removed in handleMessages:864 in

      boolean added=loopback || buf.add(msgs, oob, oob? DUMMY_OOB_MSG : null);
      

      But the size is not recomputed afterwards.

      Attachments

        Issue Links

          Activity

            People

              rhn-engineering-bban Bela Ban
              rvansa1@redhat.com Radim Vansa (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: