Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 901177 - (JBPAPP6-857) HornetQ does not delete message from queue when the message is rolled back and the DLQ is not present
HornetQ does not delete message from queue when the message is rolled back an...
Status: CLOSED CURRENTRELEASE
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: HornetQ (Show other bugs)
6.0.0
Unspecified Unspecified
high Severity high
: ---
: ---
Assigned To: Justin Bertram
http://jira.jboss.org/jira/browse/JBP...
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2012-11-08 05:18 EST by Ravi Bhardwaj
Modified: 2016-07-13 18:47 EDT (History)
7 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2012-12-13 16:20:07 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Bug_Testcase.zip (2.71 KB, application/zip)
2012-11-08 05:24 EST, Ravi Bhardwaj
no flags Details


External Trackers
Tracker ID Priority Status Summary Last Updated
JBoss Issue Tracker HORNETQ-1084 Major Resolved HornetQ does not remove message from queue when the message is rolled back and the DLA has no binding 2017-09-06 05:37 EDT
JBoss Issue Tracker JBPAPP6-857 Major Closed HornetQ does not delete message from queue when the message is rolled back and the DLQ is not present 2014-08-20 12:40:11 EDT

  None (edit)
Description Ravi Bhardwaj 2012-11-08 05:18:56 EST
Help Desk Ticket Reference: https://c.na7.visual.force.com/apex/Case_View?id=500A000000BdP1V&sfdc.override=1
Steps to Reproduce:     * Create a queue and set any binding as DLQ address. Make sure that the DLQ binding does not exists.
    * Send a message to the queue.
    * From the standalone consumer, create a transacted QueueSession and rollback the transaction.
    * Expected behaviour is, when the delivery attempts are reached, the message should have been deleted from the queue and the "Message count" and "In Delivery" count should be 0.


Workaround: Workaround Exists
Workaround Description: Make sure the DLQ binding is present so that the message could be moved to the DLQ instead of deleting it.
project_key: JBPAPP6

When a message is rolled back and the DLQ binding configured for queue is missing, the server throws the following warning message saying that it is dropping the message, however we can still see the message count and In Delivery count as :

WARN [org.hornetq.core.server.impl.QueueImpl] (Thread-3 (HornetQ-server-HornetQServerImpl::serverUUID=c7787105-2983-11e2-94d2-611405d536ca-619601171)) Message Reference[143]:RELIABLE:ServerMessage[messageID=143,priority=4, bodySize=178,expiration=0, durable=true, address=jms.queue.TestQ2,properties=TypedProperties[null]]@1575145817 has exceeded max delivery attempts. No bindings for Dead Letter Address jms.queue.DLQ123 so dropping it
Comment 1 Ravi Bhardwaj 2012-11-08 05:20:05 EST
Link: Added: This issue relates to AS7-5902
Comment 3 Ravi Bhardwaj 2012-11-08 05:24:02 EST
Send message "rollback" from the QueueSend program. QueueReveive2 rollbacks the messages which has the text as "rollback".
Comment 4 Ravi Bhardwaj 2012-11-08 05:24:02 EST
Attachment: Added: Bug_Testcase.zip
Comment 5 Justin Bertram 2012-12-13 16:20:07 EST
Upstream issue has been resolved.
Comment 7 Miroslav Novak 2013-02-21 05:42:09 EST
Setting status ON_QA since this should be in EAP 6.1.0.ER1.
Comment 9 Miroslav Novak 2013-03-14 06:02:34 EDT
Provided test is passing in EAP 6.1.0.ER1. Verified. Thanks for the test Justin.

Note You need to log in before you can comment on or make changes to this bug.