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

ActiveMQ not sending `RemoveInfo` advisory message to AMQP advisory consumers when a consumer disconnects.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 5.15.11, 5.16.0
    • 5.18.0, 5.16.6, 5.17.3
    • AMQP
    • None

    Description

      When the consumer subscribed to the advisory topic uses AMQP it only receives "ConsumerInfo" (consumer=1) and never receives the "RemoveInfo" (consumer=0) message. If the consumer subscribed to the advisory topic uses Openwire both the "ConsumerInfo" and "RemoveInfo" messages are received as expected. This appears to be a regression related to AMQ-7068

       

      In the logs we see an error like the following: 

      WARN AmqpSender - Error detected while flushing outbound messages: No encoding is known for map entry value of type: org.apache.activemq.command.SessionId

       

      We also noticed that the console shows the messages are Inflight but they are never received by the consumer: 

       

      I have a fix and will prepare a PR right away. 

      Attachments

        1. image-2022-10-12-18-37-41-001.png
          108 kB
          Lucas Tétreault

        Activity

          People

            jbonofre Jean-Baptiste Onofré
            tetlucas Lucas Tétreault
            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 - 10m
                10m