Bugfix: improper handling of IOException. This was triggered when we decided to change some other exception types into IOExceptions.
TESTED=unit tests
RELNOTES: n/a
@@ -467,15 +467,10 @@ public class GrpcActionCache implements RemoteActionCache {
Digest uploadBlob(byte[] blob) throws IOException, InterruptedException {
Digest digest = Digests.computeDigest(blob);
ImmutableSet<Digest> missing = getMissingDigests(ImmutableList.of(digest));
- try {
if (!missing.isEmpty()) {
uploadChunks(1, new Chunker.Builder().addInput(blob));
}
return digest;
- } catch (IOException e) {
- // This will never happen.
- throw new RuntimeException();
- }
}
byte[] downloadBlob(Digest digest)
