Closed mikalailapko closed 3 weeks ago
Please give the branch https://github.com/werkt/bazel-buildfarm/tree/copy-exec-fs a try, with the following config:
worker:
linkExecFileSystem: false
If this works, I'll flesh it into a mergable PR and get it available, with recommendations for Windows.
Thanks a lot @werkt, this option did help! I'm not seeing any file deletion errors with it indeed.
Closing this, as we're leaving linkExecFileSystem: false
as the mitigation (and should probably be default) on windows.
buildfarm-worker with a simple config (below) throws Java errors failing to delete temporary operations files. In my example, I had a simple helloworld c++ project that queues 16 operations on remote build. The first two run fine and clean up fine, the ones after run fine but the worker is unable to delete temporary files:
As pointed out by @werkt, this might have something to do with
all links for one inode seem to not be deletable when any process has it open (for execute in this case)
. Worker config just in case:linkInputDirectories
suggested by @werkt but didn't help. Pretty much the same config for Linux workers works fine for the same project.And a procmon logfile that shows windows file operations filtered by
clang++.exe
from start (before queuing build) to finish (when the server windows task queue reaches 0). No other process is accessing the files, and the worker is run under Administrator. Logfile.CSV