Bug 978977 - Messages are redelivered on reconnect, XA transactions
Summary: Messages are redelivered on reconnect, XA transactions
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: qpid-jca
Version: 2.3
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: ---
Assignee: messaging-bugs
QA Contact: MRG Quality Engineering
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-06-27 12:23 UTC by Valiantsina Hubeika
Modified: 2025-02-10 03:28 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2025-02-10 03:28:02 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Valiantsina Hubeika 2013-06-27 12:23:55 UTC
Description of problem:

Atomicity of messages sent under XA is lost when qpidd is killed and started again. A message that is read under an XA transaction is redelivered on reconnect.


Version-Release number of selected component (if applicable):

qpid-jca-0.18-8.el6.noarch
qpid-jca-xarecovery-0.18-8.el6.noarch


How reproducible:
100 %


Steps to Reproduce:
1. send a number of messages to a queue in one xa transaction
2. read messages from queue with MDB one by one using xa , store messages to a DB
3. kill qpidd and start qpidd
4. read the rest of messages with MDB, storing them to the DB
5. check the number of messages in the DB

Actual results:

In the DB, there is a large number of duplicate messages found (1 to 25 % of the original number)


Expected results:

In the DB, only messages that were found in the queue should be found, with no duplicates.

Additional info:

Additionally, the test was run without the database (to avoid possible DB malfunctioning). Instead an auxiliary queue was used to store read messages. The result is exactly the same.

Comment 7 Red Hat Bugzilla 2025-02-10 03:28:02 UTC
This product has been discontinued or is no longer tracked in Red Hat Bugzilla.


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