Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-7684

[Java Broker, BDB] Close Cursor when LockConflictException is thrown

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      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:

      If a lock conflict occurs during a transaction, the transaction may be retried by performing the following steps. [...]:

      1. Close all cursors opened under the transaction.
      2. Abort the transaction.
      3. Begin a new transaction and repeat the operations.

      The impact of not doing this is unclear.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            lorenz.quack Lorenz Quack
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment