-
Notifications
You must be signed in to change notification settings - Fork 11.1k
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
[5.8] Write manifest with exclusive lock #28910
Conversation
On very busy sites, multiple processes could attempt to write to the file, causing race conditions in writing to it with invalid syntax.
Please could you update the tests too. |
About 99% sure this was already merged and then reverted once. Did you search the PR history. |
I can only find #10663, seems unrelated. Would be curious as to what the failure scenario would be while adding the LOCK_EX, seems widely supported enough.
|
Last change around the line was 8c67e93f which isn't related either. |
The reverted exclusive-lock attempt was in
|
I don't think I have any plans to change this on a point release. |
Hi,
|
No answer, I'll withdraw my offer of fixing the filesystem bug, and we'll leave it for the next guy to encounter either the broken manifest file due to concurrent reads, or other issues with the exclusive lock writing. If someone encounter this later: probably just do an atomic |
On very busy sites, multiple processes could attempt to write to the file, causing race conditions in writing to it with invalid syntax. Lock the file exclusively to avoid parse errors.