You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bug #44828 [Lock] Release DoctrineDbalPostgreSqlStore connection lock on failure (simon-watiau)
This PR was squashed before being merged into the 5.4 branch.
Discussion
----------
[Lock] Release DoctrineDbalPostgreSqlStore connection lock on failure
| Q | A
| ------------- | ---
| Branch? | 5.4<!-- see below -->
| Bug fix? | yes
| New feature? | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets | <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead -->
| License | MIT
| Doc PR | <!-- required for new features -->
When using PostgreSQL advisory locks using the `DoctrineDbalPostgreSqlStore`
A first lock is acquired in memory for same connection concurrencies, this `InMemoryStore` does not rely on TTL.
When the advisory lock fails to be acquired, this first lock is not released.
For long running processes, this cause the lock to not be acquirable again because the `InMemoryStore` will never release its lock.
related to : #44723 (comment)
Commits
-------
fab5991 [Lock] Release DoctrineDbalPostgreSqlStore connection lock on failure
0 commit comments