-
Notifications
You must be signed in to change notification settings - Fork 445
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
fix: race condition could cause mkdirs() to fail with "file exists" #869
Conversation
See this PR for details: overhangio#869 (cherry picked from commit a371371)
@0x29a Can you please add a changelog entry too. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@0x29a I tested this change in a sandbox and it solved the issue. This is approved from my end subject to the resolution of my comment above.
- I tested this: Deployed and tested in sandbox
- I read through the code
a371371
to
eeb7b17
Compare
Thanks for the review, @kaustavb12. I added the entry. cc @regisb |
See this PR for more information: overhangio#869 (cherry picked from commit eeb7b17)
@@ -18,6 +18,7 @@ Every user-facing change should have an entry in this changelog. Please respect | |||
|
|||
## Unreleased | |||
- [Improvement] Make it possible to override k8s resources in plugins using `k8s-override` patch. (by @foadlind) | |||
- [Bugfix] Fix a race condition that could prevent a newly provisioned Studio container from starting due to a FileExistsError when creating logs directory. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As indicated at the top of the changelog file, please don't add entries here. Instead, create new changelog entries with make changelog-entry
. See: https://docs.tutor.overhang.io/tutor.html#contributing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll merge as-is and fix the changelog manually.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @regisb and sorry, I didn't get to fixing this. I'll keep this in mind.
Exactly the same issue as #649, but with Studio:
Also, this doesn't happen when
OPENEDX_CMS_UWSGI_WORKERS
is set to1
.