You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Charts cache is not resilient to running several Helm instances in parallel #7600
Error: file '/var/lib/jenkins/workspace/Main builds/PR checks@2/_build/helm/cache/helm/repository/nginx-ingress-1.24.7.tgz' does not appear to be a gzipped archive; got 'application/octet-stream'
Our build system runs several helm commands in parallel. It appears that one of them tried to access the cached chart file while another was writing to it (checking timestamps in log files and on the filesystem supports this conclusion).
It looks like writing a chart file to a Helm cache is not atomic, and analysis of source code supports that: ChartDownloader.DownloadTo opens the target file and writes to it.
I am going to submit a PR that makes sure that ChartDownloader.DownloadTo writes the file to the filesystem atomically (via temp file + rename), so helm will never see the partial file.
changed the title [-]Putting a downloading file in a cache is not resilient to running several Helm instances in parallel[/-][+]Charts cache is not resilient to running several Helm instances in parallel[/+]on Feb 15, 2020
Activity
[-]Putting a downloading file in a cache is not resilient to running several Helm instances in parallel[/-][+]Charts cache is not resilient to running several Helm instances in parallel[/+]czunker commentedon Feb 20, 2020
Are these related? databus23/helm-diff#177
misha-ridge commentedon Feb 20, 2020
In that bugreport a file name is missing in the path, so it's a separate issue.
Feat/oci dependencies (#1)
Make the charts cache safe in presence of several Helm instances