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

Wildcard Selector is Cached Against Virtual Topic when Browsing the Topic

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • 5.9.1
    • None
    • Broker
    • None
    • Any

    Description

      The fix for AMQ-4899 seems to have created an undesired side effect. Because all consumer selectors issued against a Virtual Topic are now cached, this means that even the Wildcard selector used when browsing the Virtual Topic is cached as well. This effectively nullifies the selectorAware attribute of the Virtual Topic, as once the browse happens, every message will be retained in the Topic, regardless of whether they match a desired consumer selector.

      To validate, create a selectorAware Virtual Topic and attach a consumer with a selector active on the Topic. Produce some messages which don't match the selector, and note that they are properly discarded. Then, browse the Virtual Topic using the web console, and produce some messages that don't match the selector again. They will be retained on the Virtual Topic.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jreock Justin Reock
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: