Skip to content

Commit e20dd64

Browse files
committed
fix: re-interrupt thread instead of swallowing exception
1 parent ffa1529 commit e20dd64

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

operator-framework-core/src/main/java/io/javaoperatorsdk/operator/processing/Controller.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ private void waitUntilStartedAndInitContext(R resource, Context context) {
8181
count.getAndIncrement();
8282
Thread.sleep(waitTime);
8383
} catch (InterruptedException e) {
84-
e.printStackTrace();
84+
Thread.currentThread().interrupt();
8585
}
8686
}
8787
log.info("Waited {}ms for controller '{}' to finish initializing", count.get() * waitTime,

0 commit comments

Comments
 (0)