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

Exception closing advisory consumers when supportAdvisory=false

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.6.4
    • Fix Version/s: 2.7.0
    • Component/s: OpenWire
    • Labels:
      None

      Description

      When broker's advisory is disabled (supportAdvisory=false) any advisory consumer won't get created at broker and the advisory consumer ID won't be stored.

      Legacy openwire clients can have a reference of advisory consumer regardless broker's settings and therefore when it closes the advisory consumer the broker has no reference to it. Therefore broker throws an exception like:

      javax.jms.IllegalStateException: Cannot remove a consumer that had not been registered

      If the broker stores the consumer info (even it doesn't create it) the exception can be avoided.

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gaohoward Howard Gao
                Reporter:
                gaohoward Howard Gao
              • 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 - 20m
                  20m