diff options
author | 2016-10-24 14:28:38 +0000 | |
---|---|---|
committer | 2016-10-24 19:30:08 +0000 | |
commit | 4b4a53e1251771dd8ddfdc66e302c5ff9478c087 (patch) | |
tree | 660f46faea54395f0fbe974582964ccda2c21f4f /src/main/java/com/google/devtools/build/lib/remote | |
parent | e7ab8a7975add1a4c0bad9481ef7be08720214c7 (diff) |
Syncing up the latest protos with the internal version. Adding UNSUPPORTED
option to setting remote execution cache.
--
MOS_MIGRATED_REVID=137027196
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/remote')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/remote/GrpcActionCache.java | 4 |
1 files changed, 3 insertions, 1 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 c8283adeea..84a09ff3b5 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 @@ -628,7 +628,9 @@ public final class GrpcActionCache implements RemoteActionCache { ExecutionCacheRequest.newBuilder().setActionDigest(actionKey.getDigest()).build(); ExecutionCacheReply reply = stub.getCachedResult(request); ExecutionCacheStatus status = reply.getStatus(); - if (!status.getSucceeded()) { + if (!status.getSucceeded() + && status.getError() != ExecutionCacheStatus.ErrorCode.UNSUPPORTED + && status.getError() != ExecutionCacheStatus.ErrorCode.MISSING_RESULT) { throw new RuntimeException(status.getErrorDetail()); } return reply.hasResult() ? reply.getResult() : null; |