File tree Expand file tree Collapse file tree 3 files changed +10
-7
lines changed
src/main/java/com/google/devtools/build/lib Expand file tree Collapse file tree 3 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -1306,10 +1306,10 @@ public ObjectCodecs getObjectCodecs() {
1306
1306
}
1307
1307
1308
1308
@ Override
1309
- public FingerprintValueService getFingerprintValueService () {
1309
+ public FingerprintValueService getFingerprintValueService () throws InterruptedException {
1310
1310
try {
1311
1311
return fingerprintValueServiceFuture .get (CLIENT_LOOKUP_TIMEOUT_SEC , SECONDS );
1312
- } catch (InterruptedException | ExecutionException | TimeoutException e ) {
1312
+ } catch (ExecutionException | TimeoutException e ) {
1313
1313
throw new IllegalStateException ("Unable to initialize fingerprint value service" , e );
1314
1314
}
1315
1315
}
@@ -1343,7 +1343,8 @@ public void setTopLevelConfigChecksum(String topLevelConfigChecksum) {
1343
1343
}
1344
1344
1345
1345
@ Override
1346
- public ImmutableSet <SkyKey > lookupKeysToInvalidate (Set <SkyKey > keysToLookup ) {
1346
+ public ImmutableSet <SkyKey > lookupKeysToInvalidate (Set <SkyKey > keysToLookup )
1347
+ throws InterruptedException {
1347
1348
AnalysisCacheInvalidator invalidator = getAnalysisCacheInvalidator ();
1348
1349
if (invalidator == null ) {
1349
1350
return ImmutableSet .of ();
@@ -1352,7 +1353,7 @@ public ImmutableSet<SkyKey> lookupKeysToInvalidate(Set<SkyKey> keysToLookup) {
1352
1353
}
1353
1354
1354
1355
@ Nullable
1355
- private AnalysisCacheInvalidator getAnalysisCacheInvalidator () {
1356
+ private AnalysisCacheInvalidator getAnalysisCacheInvalidator () throws InterruptedException {
1356
1357
AnalysisCacheInvalidator localRef = analysisCacheInvalidator ;
1357
1358
if (localRef == null ) {
1358
1359
synchronized (this ) {
Original file line number Diff line number Diff line change @@ -562,7 +562,8 @@ public Set<SkyKey> getDeserializedKeysFromRemoteAnalysisCache() {
562
562
*
563
563
* <p>This is a no-op if remote analysis caching is disabled.
564
564
*/
565
- public void invalidateWithExternalService (ExtendedEventHandler eventHandler ) {
565
+ public void invalidateWithExternalService (ExtendedEventHandler eventHandler )
566
+ throws InterruptedException {
566
567
if (!isRemoteAnalysisCachingEnabled ()) {
567
568
return ;
568
569
}
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ default boolean isRemoteFetchEnabled() {
58
58
ObjectCodecs getObjectCodecs ();
59
59
60
60
/** Returns the {@link FingerprintValueService} implementation. */
61
- FingerprintValueService getFingerprintValueService ();
61
+ FingerprintValueService getFingerprintValueService () throws InterruptedException ;
62
62
63
63
RequestBatcher <ByteString , ByteString > getAnalysisCacheClient ();
64
64
@@ -73,7 +73,8 @@ default boolean isRemoteFetchEnabled() {
73
73
*
74
74
* <p>May call the remote analysis cache to get the set of keys to invalidate.
75
75
*/
76
- ImmutableSet <SkyKey > lookupKeysToInvalidate (Set <SkyKey > existingCachedKeys );
76
+ ImmutableSet <SkyKey > lookupKeysToInvalidate (Set <SkyKey > existingCachedKeys )
77
+ throws InterruptedException ;
77
78
78
79
/** A stub dependencies provider for when analysis caching is disabled. */
79
80
final class DisabledDependenciesProvider implements RemoteAnalysisCachingDependenciesProvider {
You can’t perform that action at this time.
0 commit comments