Skip to content

Commit f14e99c

Browse files
authored
Test patch #2
2 parents afc41d1 + e070459 commit f14e99c

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

src/main/java/com/google/devtools/build/lib/remote/RemoteExecutionCache.java

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@
3636
import com.google.devtools.build.lib.events.Reporter;
3737
import com.google.devtools.build.lib.profiler.Profiler;
3838
import com.google.devtools.build.lib.profiler.SilentCloseable;
39-
import com.google.devtools.build.lib.remote.common.CacheNotFoundException;
40-
import com.google.devtools.build.lib.remote.common.LostInputsEvent;
4139
import com.google.devtools.build.lib.remote.common.RemoteActionExecutionContext;
4240
import com.google.devtools.build.lib.remote.common.RemoteCacheClient;
4341
import com.google.devtools.build.lib.remote.merkletree.MerkleTree;
@@ -185,19 +183,7 @@ private ListenableFuture<Void> uploadBlob(
185183
return cacheProtocol.uploadBlob(context, digest, file.getBytes());
186184
}
187185

188-
var path = checkNotNull(file.getPath());
189-
try {
190-
if (remotePathChecker.isRemote(context, path)) {
191-
// If we get here, the remote input was determined to exist in the remote or disk cache at
192-
// some point before action execution, but reported to be missing when querying the remote
193-
// for missing action inputs; possibly because it was evicted in the interim.
194-
reporter.post(new LostInputsEvent(digest));
195-
throw new CacheNotFoundException(digest, path.getPathString());
196-
}
197-
} catch (IOException e) {
198-
return immediateFailedFuture(e);
199-
}
200-
return cacheProtocol.uploadFile(context, digest, path);
186+
return cacheProtocol.uploadFile(context, digest, file.getPath());
201187
}
202188

203189
Message message = additionalInputs.get(digest);

0 commit comments

Comments
 (0)