Skip to content
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

Clear cached app config while waiting for the SCSSCache lock to return #23478

Merged
merged 1 commit into from
Oct 16, 2020

Conversation

MorrisJobke
Copy link
Member

@MorrisJobke MorrisJobke commented Oct 15, 2020

This should fix the issue described in #15794 (comment) and shown by @kesselb in #21059 (comment)

If this is not cleared then the while loop in

if (!$this->variablesChanged() && $this->isCached($fileNameCSS, $app)) {
will never evaluate to true and thus is the same as before the lock got released.

Part of the series around the SCSSCache: #23488 #23490

@MorrisJobke MorrisJobke force-pushed the fix/21059/fix-deadlock-in-scsscacher branch from 4fd9fa0 to 0c9d6da Compare October 15, 2020 14:25
Copy link
Member

@juliusknorr juliusknorr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense as discussed 👍

@MorrisJobke MorrisJobke force-pushed the fix/21059/fix-deadlock-in-scsscacher branch from 0c9d6da to 74c5b0c Compare October 15, 2020 21:59
@MorrisJobke MorrisJobke requested a review from kesselb October 15, 2020 22:01
@MorrisJobke
Copy link
Member Author

/backport to stable20

@MorrisJobke
Copy link
Member Author

/backport to stable19

@MorrisJobke
Copy link
Member Author

/backport to stable18

@MorrisJobke MorrisJobke force-pushed the fix/21059/fix-deadlock-in-scsscacher branch from 74c5b0c to fc547e5 Compare October 16, 2020 08:11
@MorrisJobke
Copy link
Member Author

Rebased to fix the conflicts with #23490

@MorrisJobke MorrisJobke added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Oct 16, 2020
…cessing the file

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
@MorrisJobke MorrisJobke force-pushed the fix/21059/fix-deadlock-in-scsscacher branch from fc547e5 to cce716f Compare October 16, 2020 11:28
@MorrisJobke
Copy link
Member Author

Green CI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants