Uploaded image for project: 'MariaDB Connector/J'
  1. MariaDB Connector/J
  2. CONJ-746

Add option to retry previous transaction when a deadlock is encountered

    XMLWordPrintable

Details

    • New Feature
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Won't Do
    • 2.4.4
    • N/A
    • Other
    • None

    Description

      When MariaDB encounters a deadlock, the suggestion in the error message is to retry the transaction:

      ERROR 1213 (40001): Deadlock found when trying to get lock;
      try restarting transaction
      

      It might be useful if MariaDB Connector/J could automatically retry a transaction if the server sends a deadlock error when it attempts to commit the transaction.

      There should probably be a limit on the number of retries, so that infinite retry loops can't occur.

      Attachments

        Activity

          People

            diego dupin Diego Dupin
            GeoffMontee Geoff Montee (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.