Skip to content

Commit 78d4be9

Browse files
tbainghvadehra
authored andcommitted
Improve error message for concurrent modifications
Improve the error message logged when concurrent modifications occur and --experimental_guard_against_concurrent_changes is set. Closes #17174. PiperOrigin-RevId: 501012999 Change-Id: Id661ff2e5f98173323ebecb75b5e9825c8e0491e
1 parent d245ac0 commit 78d4be9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,11 @@ 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 =
193+
"Skipping uploading outputs because of concurrent modifications "
194+
+ "with --experimental_guard_against_concurrent_changes enabled: "
195+
+ e.getMessage();
196+
remoteExecutionService.report(Event.warn(msg));
193197
return;
194198
}
195199
}

0 commit comments

Comments
 (0)