spack/lib/spack
Harmen Stoppels ea91e8f4ca
file_cache.py: idempotent remove without races (#31477)
There's a race condition in `remove()` as the lockfile is removed after
releasing the lock, which is a problem when another process acquires a
write lock during deletion.

Also simplify life a bit in multiprocessing when a file is possibly
removed multiple times, which currently is an error on the second
deletion, so the proposed fix is to make remove(...) idempotent and not
error when deleting non-existing cache entries.

Don't tests for existence of lockfile, cause windows/linux behavior is different
2022-07-12 15:03:48 +00:00
..
docs py-hatchling: add new packages, document new build backend (#31512) 2022-07-11 16:23:28 -07:00
env Revert "strip -Werror: all specific or none (#30284)" (#30878) 2022-05-26 14:17:01 -07:00
external archspec: bump to v0.1.4 (#30856) 2022-06-07 08:51:34 +00:00
llnl Update decompression support on Windows (#25185) 2022-06-06 18:14:43 -07:00
spack file_cache.py: idempotent remove without races (#31477) 2022-07-12 15:03:48 +00:00