-
- Downloads
You need to sign in or sign up before continuing.
cascache: move tmp directory one level up
The CAS uses a temp directory while manipulating the cache, temporary files can be added and removed while adding artifacts to the cache here. Since calculation of the cache size happens in parallel to artifact cache additions, this causes race conditions in the size calculation job, as we end up calling `stat` on temporary files which are being removed in parallel. Handle this by moving the temporary directory out of the way, and avoid considering the tmp directory when calculating the cache size
Showing
- buildstream/_artifactcache/artifactcache.py 4 additions, 1 deletionbuildstream/_artifactcache/artifactcache.py
- buildstream/_artifactcache/cascache.py 5 additions, 6 deletionsbuildstream/_artifactcache/cascache.py
- buildstream/_artifactcache/casserver.py 1 addition, 1 deletionbuildstream/_artifactcache/casserver.py
Please register or sign in to comment