[
https://issues.apache.org/jira/browse/QPID-5720?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13978909#comment-13978909
]
ASF subversion and git services commented on QPID-5720:
-------------------------------------------------------
Commit 1589520 from [~aconway] in branch 'qpid/trunk'
[ https://svn.apache.org/r1589520 ]
QPID-5720: HA exception raised by the store for durable transactions
Running qpid-txtest against a HA cluster was raising this exception:
async_dequeue() failed: jexception 0x0b02 wmgr::dequeue_check() threw
JERR_MAP_LOCKED: Record ID locked by a pending transaction.
This is actually a test bug. In a cluster a transaction commit takes longer to
complete because of co-ordinating with backups, the test was not waiting for the
completion of commit command before proceeding. Adding a sync() in the test
solves the problem. Note this test uses the old obsolete C++ API. Applications
written using the supported messaging API are not affected by this. This can be
verified using the qpid-send and qpid-receive clients with the --tx option
(there is already an automated test for this in ha_tests.py.)
> HA exception raised by the store for durable transactions
> ---------------------------------------------------------
>
> Key: QPID-5720
> URL: https://issues.apache.org/jira/browse/QPID-5720
> Project: Qpid
> Issue Type: Bug
> Components: C++ Clustering
> Reporter: Alan Conway
> Assignee: Alan Conway
>
> Description of problem:
> While playing with the new cluster implementation, I came across the
> following problem. When the qpid-txtest tool is executed with "--durable yes
> --transfer yes" options (that is, the journal is used on the brokers and
> messages are transferred from one queue to another), the journal on the
> broker raises an exception:
> [root@mrg-qe-11 ~]# /usr/libexec/qpid/tests/qpid-txtest --init yes --transfer
> yes --check yes --durable yes --broker 192.168.101.251
> Transfering from tx-test-1 to tx-test-2
> Transfering from tx-test-2 to tx-test-1
> Drained 9 messages from tx-test-1
> 2014-04-15 07:53:16 [Client] warning Broker closed connection: 320, Queue
> tx-test-2: async_dequeue() failed: jexception 0x0b02 wmgr::dequeue_check()
> threw JERR_MAP_LOCKED: Record ID locked by a pending transaction. (drid=0xb)
> (/builddir/build/BUILD/qpid-0.22/cpp/src/qpid/linearstore/MessageStoreImpl.cpp:1268)
> Queue tx-test-2: async_dequeue() failed: jexception 0x0b02
> wmgr::dequeue_check() threw JERR_MAP_LOCKED: Record ID locked by a pending
> transaction. (drid=0xb)
> (/builddir/build/BUILD/qpid-0.22/cpp/src/qpid/linearstore/MessageStoreImpl.cpp:1268)
> Version-Release number of selected component (if applicable):
> qpid-cpp-0.22-37.el6.x86_64
> How reproducible:
> 100%
> Steps to Reproduce:
> 1. Configure and start HA cluster.
> 2. Execute qpid-txtest tool with "--durable yes --transfer yes" options.
> 3.
> Actual results:
> journal exception is raised.
> Expected results:
> No exception.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]