Skip to content

Commit 28aa164

Browse files
authored
improve: logging if no primary found for resource id (#2036)
1 parent fe1a693 commit 28aa164

File tree

1 file changed

+6
-1
lines changed
  • operator-framework-core/src/main/java/io/javaoperatorsdk/operator/processing/event

1 file changed

+6
-1
lines changed

Diff for: operator-framework-core/src/main/java/io/javaoperatorsdk/operator/processing/event/EventProcessor.java

+6-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,12 @@ private void submitReconciliationExecution(ResourceState state) {
146146
controllerUnderExecution,
147147
maybeLatest.isPresent());
148148
if (maybeLatest.isEmpty()) {
149-
log.debug("no custom resource found in cache for resource id: {}", resourceID);
149+
// there can be multiple reasons why the primary resource is not present, one is that the
150+
// informer is currently disconnected from k8s api server, but will eventually receive the
151+
// resource. Other is that simply there is no primary resource present for an event, this
152+
// might indicate issue with the implementation, but could happen also naturally, thus
153+
// this is not necessarily a problem.
154+
log.debug("no primary resource found in cache with resource id: {}", resourceID);
150155
}
151156
}
152157
} finally {

0 commit comments

Comments
 (0)