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
When the same nar is to be uploaded multiple times (I think via dependencies), the concurrent writes/renames will conflict and failures may occur.
Steps To Reproduce
Still working on this. I did add a bunch of logging and observed the concurrency of multiple atomicWrite calls.
Go to '...'
Click on '....'
Scroll down to '....'
See error
Expected behavior
Everything is written without errors, redundant nar upserts either do nothing or replace the existing nar.
nix-env --version output
Master branch
Additional context
atomicWrite in src/libstore/local-binary-cache-store.cc uses process ids for temporary files, but I think it needs to use something finer-grained to distinguish threads.
The text was updated successfully, but these errors were encountered:
Based on what I did in obsidiansystems@953ceba, it looks like one trigger is copying a fixed output derivation along with another that depends on the first one.
Describe the bug
When the same nar is to be uploaded multiple times (I think via dependencies), the concurrent writes/renames will conflict and failures may occur.
Steps To Reproduce
Still working on this. I did add a bunch of logging and observed the concurrency of multiple
atomicWrite
calls.Expected behavior
Everything is written without errors, redundant nar upserts either do nothing or replace the existing nar.
nix-env --version
outputMaster branch
Additional context
atomicWrite
insrc/libstore/local-binary-cache-store.cc
uses process ids for temporary files, but I think it needs to use something finer-grained to distinguish threads.The text was updated successfully, but these errors were encountered: