Skip to content

Commit e4ececf

Browse files
committed
wip
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
1 parent a7f5373 commit e4ececf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

operator-framework-core/src/main/java/io/javaoperatorsdk/operator/processing/event/source/informer/TemporaryResourceCache.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ private synchronized EventHandling onEvent(
153153
result = EventHandling.OBSOLETE;
154154
}
155155
}
156+
checkStaleResources();
156157
var ed = activeUpdates.get(resourceId);
157158
if (ed != null && result != EventHandling.OBSOLETE) {
158159
log.debug("Setting last event for id: {} delete: {}", resourceId, delete);
@@ -167,6 +168,7 @@ private synchronized EventHandling onEvent(
167168
}
168169

169170
private void checkStaleResources() {
171+
// todo add only once within an interval check
170172
CompletableFuture.runAsync(
171173
() -> {
172174
var longLatest = Long.parseLong(latestResourceVersion);

0 commit comments

Comments
 (0)