Skip to content

Commit

Permalink
Reduce debug noise
Browse files Browse the repository at this point in the history
  • Loading branch information
aherrmann committed Oct 20, 2021
1 parent 80846af commit b80d840
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions nix/bazel-retry-cache.patch
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ index 57741a8f28..6673149a20 100644
workingDirectory,
diskCachePath,
diff --git a/src/main/java/com/google/devtools/build/lib/remote/RemoteModule.java b/src/main/java/com/google/devtools/build/lib/remote/RemoteModule.java
index 350e1afa51..a5a8cf366d 100644
index 350e1afa51..937dddd1b9 100644
--- a/src/main/java/com/google/devtools/build/lib/remote/RemoteModule.java
+++ b/src/main/java/com/google/devtools/build/lib/remote/RemoteModule.java
@@ -59,9 +59,11 @@ import com.google.devtools.build.lib.exec.ModuleActionContextRegistry;
Expand All @@ -90,7 +90,7 @@ index 350e1afa51..a5a8cf366d 100644
import java.util.HashSet;
import java.util.List;
import java.util.Map;
@@ -213,7 +216,27 @@ public final class RemoteModule extends BlazeModule {
@@ -213,7 +216,26 @@ public final class RemoteModule extends BlazeModule {
remoteOptions,
creds,
Preconditions.checkNotNull(env.getWorkingDirectory(), "workingDirectory"),
Expand All @@ -107,11 +107,10 @@ index 350e1afa51..a5a8cf366d 100644
+ }
+ if (retry) {
+ System.err.println("RETRYING: " + e.toString());
+ return true;
+ } else {
+ } else if (!(e instanceof CacheNotFoundException)) {
+ System.err.println("NOT RETRYING: " + e.toString());
+ return false;
+ }
+ return retry;
+ },
+ retryScheduler,
+ Retrier.ALLOW_ALL_CALLS)
Expand Down

0 comments on commit b80d840

Please sign in to comment.