Skip to content

Commit cf31731

Browse files
committed
improve: eager informer start check
this is important for dynamic event source registration to not reindex resources Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
1 parent 35c4e68 commit cf31731

File tree

1 file changed

+3
-0
lines changed
  • operator-framework-core/src/main/java/io/javaoperatorsdk/operator/processing/event/source/informer

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,9 @@ protected void handleEvent(
139139

140140
@Override
141141
public synchronized void start() {
142+
if (isRunning()) {
143+
return;
144+
}
142145
super.start();
143146
// this makes sure that on first reconciliation all resources are
144147
// present on the index

0 commit comments

Comments
 (0)