Details
-
New Feature
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Won't Do
-
2.4.4
-
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.