Skip to content

Commit 11986f2

Browse files
authored
Merge pull request #1627 from aaruna/shutdownResyncExecutorInController
Fix name and shutdown resync executor in Controller.shutdown
2 parents 428e5c9 + 3eaa281 commit 11986f2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

util/src/main/java/io/kubernetes/client/informer/cache/Controller.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public Controller(
8787
// starts one daemon thread for resync
8888
this.resyncExecutor =
8989
Executors.newSingleThreadScheduledExecutor(
90-
Threads.threadFactory("controller-reflector-" + apiTypeClass.getName() + "-%d"));
90+
Threads.threadFactory("controller-resync-" + apiTypeClass.getName() + "-%d"));
9191
}
9292

9393
public Controller(
@@ -139,6 +139,7 @@ public void stop() {
139139
}
140140
}
141141
reflectExecutor.shutdown();
142+
resyncExecutor.shutdown();
142143
}
143144

144145
/** returns true if the queue has been resycned */

0 commit comments

Comments
 (0)