abhishekrb19 commented on code in PR #17353:
URL: https://github.com/apache/druid/pull/17353#discussion_r1950112801


##########
indexing-service/src/main/java/org/apache/druid/indexing/scheduledbatch/ScheduledBatchTaskManager.java:
##########
@@ -259,15 +302,16 @@ private synchronized void startScheduling()
 
     private synchronized void stopScheduling()
     {
-      status = 
ScheduledBatchSupervisorSnapshot.BatchSupervisorStatus.SCHEDULER_SHUTDOWN;
+      state = ScheduledBatchSupervisor.State.SUSPENDED;
+      statusTracker.cleanupStaleTaskStatuses();

Review Comment:
   Yes, good point, updated the method `cleanupStaleTaskStatuses()` to accept a 
supervisor ID and it now cleans up only tasks associated with the supplied 
supervisor ID.



-- 
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