-
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
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.