[CONJ-746] Add option to retry previous transaction when a deadlock is encountered Created: 2019-11-21 Updated: 2023-12-04 Resolved: 2023-12-04 |
|
| Status: | Closed |
| Project: | MariaDB Connector/J |
| Component/s: | Other |
| Affects Version/s: | 2.4.4 |
| Fix Version/s: | N/A |
| Type: | New Feature | Priority: | Major |
| Reporter: | Geoff Montee (Inactive) | Assignee: | Diego Dupin |
| Resolution: | Won't Do | Votes: | 0 |
| Labels: | None | ||
| Description |
|
When MariaDB encounters a deadlock, the suggestion in the error message is to retry the 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. |