Skip to content

Commit 0759081

Browse files
coeuvretbaingShreeM01
authored
Improve error message for concurrent modifications (bazelbuild#17396)
Improve the error message logged when concurrent modifications occur and --experimental_guard_against_concurrent_changes is set. Co-authored-by: Tim Bain <[email protected]> Co-authored-by: kshyanashree <[email protected]>
1 parent 84c1ed4 commit 0759081

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/com/google/devtools/build/lib/remote/RemoteSpawnCache.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,9 @@ public void store(SpawnResult result) throws ExecException, InterruptedException
189189
try (SilentCloseable c = prof.profile("RemoteCache.checkForConcurrentModifications")) {
190190
checkForConcurrentModifications();
191191
} catch (IOException | ForbiddenActionInputException e) {
192-
remoteExecutionService.report(Event.warn(e.getMessage()));
192+
String msg = "Skipping uploading outputs because of concurrent modifications " +
193+
"with --experimental_guard_against_concurrent_changes enabled: " + e.getMessage();
194+
remoteExecutionService.report(Event.warn(msg));
193195
return;
194196
}
195197
}

0 commit comments

Comments
 (0)