georgew5656 commented on code in PR #17535:
URL: https://github.com/apache/druid/pull/17535#discussion_r1882851174


##########
indexing-service/src/main/java/org/apache/druid/indexing/overlord/supervisor/SupervisorManager.java:
##########
@@ -56,13 +64,17 @@ public class SupervisorManager
   // SupervisorTaskAutoScaler could be null
   private final ConcurrentHashMap<String, SupervisorTaskAutoScaler> 
autoscalers = new ConcurrentHashMap<>();
   private final Object lock = new Object();
+  private final ListeningExecutorService shutdownExec;
 
   private volatile boolean started = false;
 
   @Inject
   public SupervisorManager(MetadataSupervisorManager metadataSupervisorManager)
   {
     this.metadataSupervisorManager = metadataSupervisorManager;
+    this.shutdownExec = MoreExecutors.listeningDecorator(
+        Execs.multiThreaded(25, "supervisor-manager-shutdown-%d")

Review Comment:
   the issue i was running into with this strategy is that part of the stop 
logic is shutting down the scheduledExec executor, and I couldn't really think 
of a great way to avoid this chicken-and-egg problem. 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to