Skip to content

[HttpKernel] Fix race condition when clearing old containers #25205

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
Nov 29, 2017

Conversation

nicolas-grekas
Copy link
Member

Q A
Branch? 3.4
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets -
License MIT
Doc PR -

Missed in #25190: when two concurrent requests create the new container concurrently, the last one would drop the old container files, because the first one just created the *.legacyContainer file.

@chalasr
Copy link
Member

chalasr commented Nov 29, 2017

Not easily testable?

@nicolas-grekas
Copy link
Member Author

Hell no :)

@fabpot
Copy link
Member

fabpot commented Nov 29, 2017

Thank you @nicolas-grekas.

@fabpot fabpot merged commit 9d553f5 into symfony:3.4 Nov 29, 2017
fabpot added a commit that referenced this pull request Nov 29, 2017
…ners (nicolas-grekas)

This PR was merged into the 3.4 branch.

Discussion
----------

[HttpKernel] Fix race condition when clearing old containers

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

Missed in #25190: when two concurrent requests create the new container concurrently, the last one would drop the old container files, because the first one just created the `*.legacyContainer` file.

Commits
-------

9d553f5 [HttpKernel] Fix race condition when clearing old containers
@nicolas-grekas nicolas-grekas deleted the kernel-legacy branch November 29, 2017 18:35
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.

5 participants