Uploaded image for project: 'ActiveMQ Artemis'
  1. ActiveMQ Artemis
  2. ARTEMIS-4115

ArrayIndexOutOfBoundsException when duplicate cache size is 0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.28.0
    • None
    • None

    Description

      When the duplicate ID cache size is set to 0 (e.g. via broker properties) this exception occurs when sending a message with a _AMQ_DUPL_ID header:

      java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0
      
      	at org.apache.activemq.artemis.core.postoffice.impl.IntegerCache.lambda$boxedInts$0(IntegerCache.java:52)
      	at org.apache.activemq.artemis.core.postoffice.impl.PersistentDuplicateIDCache.addToCacheInMemory(PersistentDuplicateIDCache.java:271)
      	at org.apache.activemq.artemis.core.postoffice.impl.PersistentDuplicateIDCache.addToCache(PersistentDuplicateIDCache.java:235)
      	at org.apache.activemq.artemis.core.postoffice.impl.PersistentDuplicateIDCache.addToCache(PersistentDuplicateIDCache.java:225)
      	at org.apache.activemq.artemis.core.postoffice.impl.PersistentDuplicateIDCache.addToCache(PersistentDuplicateIDCache.java:202)

      Attachments

        Issue Links

          Activity

            People

              jbertram Justin Bertram
              jbertram Justin Bertram
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h