Skip to content

Fixed cache pools affecting each other due to an overwritten seed variable #33570

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

Conversation

roed
Copy link
Contributor

@roed roed commented Sep 13, 2019

Q A
Branch? 4.3 for bug fixes
Bug fix? yes
New feature? no
Deprecations? no
Tickets Closes #33561
License MIT

Due to the fact the adapter was added to the cache seed calculation for cache pools, multiple pool definitions could affect each other. The how and why is described in #33561. This PR resolves that issue by using a copy of the seed and mutating only that copy.

@roed
Copy link
Contributor Author

roed commented Sep 13, 2019

@xabbuh The build is failing on a different component. Is that an issue for this PR?

@xabbuh
Copy link
Member

xabbuh commented Sep 13, 2019

The failures don't look related to your changes to me.

@roed
Copy link
Contributor Author

roed commented Sep 13, 2019

Ok, then I won't focus on them. Thanks!

@nicolas-grekas nicolas-grekas added this to the 4.3 milestone Sep 13, 2019
@nicolas-grekas
Copy link
Member

Good catch, thanks @roed.

nicolas-grekas added a commit that referenced this pull request Sep 13, 2019
…en seed variable (roed)

This PR was merged into the 4.3 branch.

Discussion
----------

Fixed cache pools affecting each other due to an overwritten seed variable

| Q             | A
| ------------- | ---
| Branch?       | 4.3 for bug fixes
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #33561
| License       | MIT

Due to the fact the adapter was added to the cache seed calculation for cache pools, multiple pool definitions could affect each other. The how and why is described in #33561. This PR resolves that issue by using a copy of the seed and mutating only that copy.

Commits
-------

29ba7a8 Fixed cache pools affecting each other due to an overwritten seed variable
@nicolas-grekas nicolas-grekas merged commit 29ba7a8 into symfony:4.3 Sep 13, 2019
@fabpot fabpot mentioned this pull request Oct 7, 2019
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