Bug 998621 - QueueBrowser created on local transacted session removes messages from queue
Summary: QueueBrowser created on local transacted session removes messages from queue
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: qpid-java
Version: 2.3
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: ---
: ---
Assignee: messaging-bugs
QA Contact: Messaging QE
URL:
Whiteboard:
Depends On:
Blocks: 1034320
TreeView+ depends on / blocked
 
Reported: 2013-08-19 15:42 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:
: 1034320 (view as bug list)
Environment:
Last Closed: 2025-02-10 03:28:23 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 997065 0 medium CLOSED qpid-stat returns unexpected value in the 'msg' field 2025-02-10 03:28:20 UTC

Internal Links: 997065

Description Valiantsina Hubeika 2013-08-19 15:42:16 UTC
Description of problem:

When QueueBrowser is created on a session with transactions, it removes messages from queue.

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

qpid-jca-0.18-8.el6.noarch
qpid-cpp-server-0.18-14.el6.i686


How reproducible:
random - needs to be called several times

Steps to Reproduce:

1. Create transacted session
2. create queue browser
3. in a loop check number of messages in queue

Actual results:

at some point messages are removed from queue

like 
 queue                                     dur  autoDel  excl  msg   msgIn  msgOut  bytes  bytesIn  bytesOut  cons  bind
  =========================================================================================================================
  2adf18ed-77ce-4e8d-bfc0-8429174937f0:0.0       Y        Y        0     0      0       0      0        0         1     2
  mrg_localtx_out                                                  8   486    478     466   12.0k    11.6k        0     1

Sometimes it also removes from queue more messages than there actually were (please see Bug 997065) 

Expected results:

no messages are removed from queue

Additional info:

Comment 4 Weston M. Price 2013-08-20 14:47:19 UTC
For this BZ and https://bugzilla.redhat.com/show_bug.cgi?id=998628 I need a bit more information: 

1) Are you using the LocalTransactionCF in your *-ds.xml file (please attach your configuration).

2)How are you running this test? What sort of application component (EJB, Servlet etc) are you using? Is there an active XA transaction while you are running this (this would have an effect).

Comment 5 Weston M. Price 2013-08-20 16:55:49 UTC
If we could test with the Java client outside of the app server, that would be good as well. I can setup the code to do this.

Comment 6 Weston M. Price 2013-08-20 17:44:47 UTC
Confirmed and verified behavior. Looking into it further...good catch Val.

Comment 7 Valiantsina Hubeika 2013-08-29 08:37:11 UTC
I answered question to Weston earlier in a private conversation as:

1) The whole test runs on local transactions with eap6.

2) EJB, Servlet are involved. No active XA transactions is running while test runs.

Comment 8 Michal Toth 2013-08-30 08:53:08 UTC
Tested on EAP5 with local transactions. Same behaviour as Valentina described.

Comment 9 Weston M. Price 2013-08-30 11:46:05 UTC
Confirmed as well on EAP5. Since this ultimately involves the JMS client, it will persist across EAP versions independent of JCA/JEE server.

Comment 10 Justin Ross 2013-10-15 20:49:22 UTC
Making this a qpid-java bug.  Please return it to qpid-jca if that's incorrect.

Comment 12 Valiantsina Hubeika 2013-11-25 15:39:56 UTC
The issue is no longer present in version 2.3 (as the result of release 2.3.6)

Comment 19 Red Hat Bugzilla 2025-02-10 03:28:23 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.