Uploaded image for project: 'ActiveMQ Classic'
  1. ActiveMQ Classic
  2. AMQ-5942

CachedMessageGroupMapFactory fails with large key sets

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 5.11.1
    • None
    • None
    • None

    Description

      the current default factory is the CachedMessageGroupMapFactory which uses an LRUMap with a maxSize of 1024 keys. If you use this with more than 1024 keys and fail to explicitly increase the maxSize, then the message groups fails to ensure ordering by group, same thread processing by group and overlapping execution.

      I have reproduced this behavior in the attached unit test (using Camel routes as consumers)...if you switch to the SimpleMessageGroupMapFactory or increase the max size of the cache above the number of keys...the issues go away

      two suggestions
      -throw an error when the maxSize is exceeded if using the CachedMessageGroupMapFactory
      -make the SimpleMessageGroupMapFactory the default (unlimited)

      Attachments

        1. MessageGroupFactoryRouteTest.java
          5 kB
          Benjamin P. O'Day

        Activity

          People

            Unassigned Unassigned
            boday Benjamin P. O'Day
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: