Lorenz Quack created QPID-7684:
----------------------------------

             Summary: [Java Broker, BDB] Close Cursor when 
LockConflictException is thrown
                 Key: QPID-7684
                 URL: https://issues.apache.org/jira/browse/QPID-7684
             Project: Qpid
          Issue Type: Bug
          Components: Java Broker
    Affects Versions: qpid-java-6.1.1, qpid-java-6.0.6, 0.32, qpid-java-7.0
            Reporter: Lorenz Quack


Currently, when a LockConflictException is thrown we retry the operation.
However the retry logic does not adhere to the rules outlined in the BDB JE 
documentation, specifically we do not close and recreate the Cursor.
To quote the 
[documentation|https://docs.oracle.com/cd/E17277_02/html/java/com/sleepycat/je/LockConflictException.html]:
{quote}If a lock conflict occurs during a transaction, the transaction may be 
retried by performing the following steps. \[...\]:
# Close all cursors opened under the transaction.
# Abort the transaction.
# Begin a new transaction and repeat the operations.
{quote}
The impact of not doing this is unclear.




--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to