Skip to content

Commit 1ae9bdd

Browse files
committed
report unexpected controller loop abortion
1 parent a0a3f4d commit 1ae9bdd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

extended/src/main/java/io/kubernetes/client/extended/controller/DefaultController.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,11 @@ public void run() {
105105
workerThreadPool.scheduleWithFixedDelay(
106106
() -> {
107107
log.debug("Starting controller {} worker {}..", this.name, workerIndex);
108-
this.worker();
108+
try {
109+
this.worker();
110+
} catch (Throwable t) {
111+
log.error("Unexpected controller loop abortion", t);
112+
}
109113
latch.countDown();
110114
log.debug("Exiting controller {} worker {}..", this.name, workerIndex);
111115
},

0 commit comments

Comments
 (0)