ActiveMQ: One Pending Message but Queue is empty

2019-07-17 15:22发布

问题:

I have a strange problem with ActiveMQ. I have a queue that seems to have a pending message, but when I open the queue, there is no message.

What is wrong here? Is there really a message pending? How can I bring the message back or at least see the content?

Screenshot of the pending message:

Screenshot when opening the queue, which is empty:

EDIT: Just found these two bugs of ActiveMQ 5.6.0. Can this be the source of that problem?

Incorrect reporting of pendingQueueSize of durable subs after reconnect with unacked

Problem in OrderPendingList can lead to message not being deliver after durable sub reconnect.

回答1:

So I updated to ActiveMQ 5.7.0 quite some time ago and didn't had this bug anymore since. So I'd say my problem was due to these bugs here:

Incorrect reporting of pendingQueueSize of durable subs after reconnect with unacked

Problem in OrderPendingList can lead to message not being deliver after durable sub reconnect.