Skip to content

Commit

Permalink
Improve error message for concurrent modifications
Browse files Browse the repository at this point in the history
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
  • Loading branch information
tbaing authored and hvadehra committed Feb 14, 2023
1 parent d245ac0 commit 78d4be9
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,11 @@ public void store(SpawnResult result) throws ExecException, InterruptedException
try (SilentCloseable c = prof.profile("RemoteCache.checkForConcurrentModifications")) {
checkForConcurrentModifications();
} catch (IOException | ForbiddenActionInputException e) {
remoteExecutionService.report(Event.warn(e.getMessage()));
String msg =
"Skipping uploading outputs because of concurrent modifications "
+ "with --experimental_guard_against_concurrent_changes enabled: "
+ e.getMessage();
remoteExecutionService.report(Event.warn(msg));
return;
}
}
Expand Down

0 comments on commit 78d4be9

Please sign in to comment.