Details
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.