A-MQ, Prioritized Messages; messages cannot be consumed even when broker is restarted

Solution Verified - Updated -

Issue

  • when messages are being sent to the broker and the broker is restarted; periodically the kahadb indexes seem to be corrupted/out of sync. The cursor.queueSize() is reporting messages available on queue but they cannot be consumed. The orderIndex contains zero messages. Even after a broker restart the messages reported in the queue cannot be consumed. Debug logging will show "toPageIn:" containing messages that will not be paged in.
XXXX | DEBUG |XXXX|  121 - rg.apache.activemq.activemq-osgi | che.activemq.broker.region.Queue | XXXX toPageIn: 101, Inflight: 0, pagedInMessages.size 0, pagedInPendingDispatch.size 0, enqueueCount: 0, dequeueCount: 0, memUsage:0
  • issue is only experienced when using prioritizedMessages.
 <policyEntry queue="myQueue" 
                    prioritizedMessages="true"
  ....

Environment

  • JBoss A-MQ 6.1 GA

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.