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

    • Type: New Feature
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.4.4
    • Fix Version/s: None
    • Component/s: Other
    • Labels:
      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

            Assignee:
            ralf.gebhardt@mariadb.com Ralf Gebhardt
            Reporter:
            GeoffMontee Geoff Montee
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: