aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/remote/GrpcActionCache.java
diff options
context:
space:
mode:
authorGravatar Ola Rozenfeld <olaola@google.com>2016-11-18 21:10:13 +0000
committerGravatar Dmitry Lomov <dslomov@google.com>2016-11-21 19:39:07 +0000
commite860316559eac366d47923a8eb4b5489a661aa35 (patch)
tree42789617034203615117e974170e03786d43f24e /src/main/java/com/google/devtools/build/lib/remote/GrpcActionCache.java
parent74c6ad8db812077d3fd482cbedb5a874fadf8778 (diff)
Using an ActionFileInputCache for SHA1 digests used with remote execution.
-- MOS_MIGRATED_REVID=139613925
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/remote/GrpcActionCache.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/remote/GrpcActionCache.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/remote/GrpcActionCache.java b/src/main/java/com/google/devtools/build/lib/remote/GrpcActionCache.java
index 5004748b00..0563c6848b 100644
--- a/src/main/java/com/google/devtools/build/lib/remote/GrpcActionCache.java
+++ b/src/main/java/com/google/devtools/build/lib/remote/GrpcActionCache.java
@@ -629,7 +629,6 @@ public final class GrpcActionCache implements RemoteActionCache {
ExecutionCacheReply reply = stub.getCachedResult(request);
ExecutionCacheStatus status = reply.getStatus();
if (!status.getSucceeded()
- && status.getError() != ExecutionCacheStatus.ErrorCode.UNSUPPORTED
&& status.getError() != ExecutionCacheStatus.ErrorCode.MISSING_RESULT) {
throw new RuntimeException(status.getErrorDetail());
}
@@ -650,7 +649,8 @@ public final class GrpcActionCache implements RemoteActionCache {
.build();
ExecutionCacheSetReply reply = stub.setCachedResult(request);
ExecutionCacheStatus status = reply.getStatus();
- if (!status.getSucceeded()) {
+ if (!status.getSucceeded()
+ && status.getError() != ExecutionCacheStatus.ErrorCode.UNSUPPORTED) {
throw new RuntimeException(status.getErrorDetail());
}
}