diff options
author | 2018-08-08 13:10:36 -0700 | |
---|---|---|
committer | 2018-08-08 13:12:12 -0700 | |
commit | bddc514c24e696fcc61df68eae50bc4963d0a4ad (patch) | |
tree | d85e3ba1b7b457035b6a947912b63c3dcb570def /src/main/java/com/google/devtools/build/skyframe/QueryableGraphBackedSkyFunctionEnvironment.java | |
parent | 5ff94b75fb0db2b4f5e79ce1190390d03e54956e (diff) |
In AbstractSkyFunctionEnvironment, don't check for filtered exceptions in the common case of no exceptions. We were already mostly tracking missing dependencies in the subclasses, so there's no need to check for missing dependencies here.
PiperOrigin-RevId: 207934220
Diffstat (limited to 'src/main/java/com/google/devtools/build/skyframe/QueryableGraphBackedSkyFunctionEnvironment.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/skyframe/QueryableGraphBackedSkyFunctionEnvironment.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/com/google/devtools/build/skyframe/QueryableGraphBackedSkyFunctionEnvironment.java b/src/main/java/com/google/devtools/build/skyframe/QueryableGraphBackedSkyFunctionEnvironment.java index 3be1c6a418..3ac4e3d7eb 100644 --- a/src/main/java/com/google/devtools/build/skyframe/QueryableGraphBackedSkyFunctionEnvironment.java +++ b/src/main/java/com/google/devtools/build/skyframe/QueryableGraphBackedSkyFunctionEnvironment.java @@ -35,9 +35,9 @@ public class QueryableGraphBackedSkyFunctionEnvironment extends AbstractSkyFunct this.eventHandler = eventHandler; } - private static ValueOrUntypedException toUntypedValue(NodeEntry nodeEntry) - throws InterruptedException { + private ValueOrUntypedException toUntypedValue(NodeEntry nodeEntry) throws InterruptedException { if (nodeEntry == null || !nodeEntry.isDone()) { + valuesMissing = true; return ValueOrUntypedException.ofNull(); } SkyValue maybeWrappedValue = nodeEntry.getValueMaybeWithMetadata(); @@ -45,6 +45,7 @@ public class QueryableGraphBackedSkyFunctionEnvironment extends AbstractSkyFunct if (justValue != null) { return ValueOrUntypedException.ofValueUntyped(justValue); } + errorMightHaveBeenFound = true; ErrorInfo errorInfo = Preconditions.checkNotNull(ValueWithMetadata.getMaybeErrorInfo(maybeWrappedValue)); Exception exception = errorInfo.getException(); |