Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Cache] Revert "feature #41989 make LockRegistry use semaphores when possible" #44667

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 16, 2021

Conversation

nicolas-grekas
Copy link
Member

Q A
Branch? 5.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets Fix #44536
License MIT
Doc PR -

This reverts commit 479919d, reversing
changes made to 356c953.

I'd like to revert this PR because using semaphores is creating problems that don't have any easy solution.

…res when possible (nicolas-grekas)"

This reverts commit 479919d, reversing
changes made to 356c953.
@carsonbot carsonbot added this to the 5.4 milestone Dec 16, 2021
@carsonbot carsonbot changed the title Revert "feature #41989 [Cache] make LockRegistry use semaphores when possible" [Cache] Revert "feature #41989 make LockRegistry use semaphores when possible" Dec 16, 2021
nicolas-grekas added a commit that referenced this pull request Dec 16, 2021
This PR was merged into the 4.4 branch.

Discussion
----------

[Cache] disable lock on CLI

| Q             | A
| ------------- | ---
| Branch?       | 5.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? |
| Tickets       | Fix #41130
| License       | MIT
| Doc PR        | -

I thought using semaphores would fix the linked issue but I'm proposing to revert them in #44667

Instead, I think we should disable the lock on CLI processes.

The purpose of having locks enabled by default is to prevent cache stamped at deploy time. Disabling the lock on CLI still provides this protection on eg FPM.

For ppl that really want a lock between eg crons and FPM, the lock component should be used instead.

Commits
-------

b968514 [Cache] disable lock on CLI
@nicolas-grekas nicolas-grekas merged commit eb60956 into symfony:5.4 Dec 16, 2021
@nicolas-grekas nicolas-grekas deleted the cache-no-sem branch December 16, 2021 22:25
This was referenced Dec 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.