-
Notifications
You must be signed in to change notification settings - Fork 99
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
OCIStore is not concurrency safe at a process-level #286
Comments
@steved thanks for opening. Yes, it is true. The source of truth for all helm refs are stored in a single file. Do you have any thoughts on how to address this? |
The best idea I have is some sort of file locking scheme that allows merging of image references at save time. Is this library the correct place for a change, though? It implements the upstream OCI image spec and it doesn't appear that the specification is particular concurrency-safe either. Is this something that Helm should potentially implement as a consumer of the OCIStore? |
I have considered adding code to Unfortunately if any other tool touches From the (Slightly annoyingly, the pre- |
@cyphar - did umoci ever end up implementing any lock mechanism on index.json? |
When running multiple
helm chart
commands at the same time, there can be a race to write the updated OCIStore index reference resulting in missing references for later commands. Is it expected that this should work or should eachhelm chart
command be given a new registry cache directory to avoid this?Failing test case:
The text was updated successfully, but these errors were encountered: