mirror of
https://github.com/doctrine/orm.git
synced 2026-04-29 17:33:15 +02:00
[PR #806] [CLOSED] [RC][WIP] Retry on MySql deadlock errors #8734
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/doctrine/orm/pull/806
Author: @alex88
Created: 9/30/2013
Status: ❌ Closed
Base:
master← Head:feature/deadlock_retry📝 Commits (2)
81f7663Initial setup for deadlock retry37f4549Use of ternary operator shortcuts📊 Changes
2 files changed (+104 additions, -32 deletions)
View changed files
📝
lib/Doctrine/ORM/Configuration.php(+54 -0)📝
lib/Doctrine/ORM/UnitOfWork.php(+50 -32)📄 Description
I've done an initial setup of a way to handle MySql deadlocks by retrying the transaction when using em->flush().
I've added 2 configuration variables, one to set how many times to retry and for how long to sleep between each try.
Let me know if this can be merged, is useless or need improvements.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.