From 773785a408f7b8ff3fc542f2016bb30fa86e363d Mon Sep 17 00:00:00 2001 From: Rajesh Gadipuuri Date: Mon, 5 Jun 2023 11:25:39 -0700 Subject: [PATCH] Shutdown resync and reflect executors now in Controller.shutdown --- .../java/io/kubernetes/client/informer/cache/Controller.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/src/main/java/io/kubernetes/client/informer/cache/Controller.java b/util/src/main/java/io/kubernetes/client/informer/cache/Controller.java index b950b1dd34..602cd52e92 100644 --- a/util/src/main/java/io/kubernetes/client/informer/cache/Controller.java +++ b/util/src/main/java/io/kubernetes/client/informer/cache/Controller.java @@ -158,8 +158,8 @@ public void stop() { reflectorFuture.cancel(true); } } - reflectExecutor.shutdown(); - resyncExecutor.shutdown(); + reflectExecutor.shutdownNow(); + resyncExecutor.shutdownNow(); } /** returns true if the queue has been resycned */