Red Hat Bugzilla – Bug 781496
Incorrect timestamp returned by query method call
Last modified: 2013-03-06 13:54:26 EST
Description of problem: The QMF Query method returns the timestamp of the oldest message for each message group if the timestamping is enabled on the broker (see Bug 760636) - this works fine. But If the head message is acquired but not yet acknowledged/rejected by a consumer, the Query method returns zero in the value of the timestamp. I'm not sure if the result shall contain the timestamp of the acquired message or the timestamp of the next message, but it shall definitely not be equal to zero. Version-Release number of selected component (if applicable): python-qpid-0.14-1.el5 python-qpid-qmf-0.14-2.el5 qpid-cpp-client-0.14-3.el5 qpid-cpp-client-devel-0.14-3.el5 qpid-cpp-client-devel-docs-0.14-3.el5 qpid-cpp-client-ssl-0.14-3.el5 qpid-cpp-server-0.14-3.el5 qpid-cpp-server-cluster-0.14-3.el5 qpid-cpp-server-devel-0.14-3.el5 qpid-cpp-server-ssl-0.14-3.el5 qpid-cpp-server-store-0.14-3.el5 qpid-cpp-server-xml-0.14-3.el5 qpid-java-client-0.14-1.el5 qpid-java-common-0.14-1.el5 qpid-java-example-0.14-1.el5 qpid-qmf-0.14-2.el5 qpid-qmf-devel-0.14-2.el5 qpid-tests-0.14-1.el5 qpid-tools-0.14-1.el5 How reproducible: 100% Steps to Reproduce: 1. enable timestamping on the broker 2. create a message groups queue 3. send several messages on the queue 4. acquire a message, but do not acknowledge/reject yet 5. call the query method 6. the timestamp in the result of the query method call is zero Actual results: The result of the query method call returns zero if the message is acquired but not yet acknowledged/rejected Expected results: Relevant timestamp is returned by the query method call
Created attachment 555092 [details] test reproducer
This issue has been fixed. Verified on rhel5 and rhel6 (both i386,x86_64) packages used for testing: qpid-qmf-0.18-6 qpid-cpp-*-0.18-7 -> VERIFIED
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHSA-2013-0561.html