Change to a lower-noise reporting method.
It can avoid to keep sending Third eye reports, but still get error message to help further investigation.
PiperOrigin-RevId: 442897019
diff --git a/src/main/java/com/google/devtools/build/lib/skyframe/AspectFunction.java b/src/main/java/com/google/devtools/build/lib/skyframe/AspectFunction.java
index 006c639..bb7c9d7 100644
--- a/src/main/java/com/google/devtools/build/lib/skyframe/AspectFunction.java
+++ b/src/main/java/com/google/devtools/build/lib/skyframe/AspectFunction.java
@@ -248,9 +248,8 @@
for (AspectKey aspectKey : orderedKeys) {
AspectValue aspectValue = (AspectValue) aspectValues.get(aspectKey);
if (aspectValue == null) {
- BugReport.sendBugReport(
- new IllegalStateException(
- "aspectValue " + aspectKey + " was missing, this should never happen"));
+ BugReport.logUnexpected(
+ "aspectValue for: '%s' was missing, this should never happen", aspectKey);
return null;
}
topologicalAspectPathBuilder.add(aspectValue.getAspect());