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


##########
indexing-service/src/main/java/org/apache/druid/indexing/seekablestream/supervisor/SeekableStreamSupervisor.java:
##########
@@ -3132,7 +3153,7 @@ private void checkTaskDuration() throws 
ExecutionException, InterruptedException
           } else {
             DateTime earliestTaskStart = computeEarliestTaskStartTime(group);
 
-            if 
(earliestTaskStart.plus(ioConfig.getTaskDuration()).isBeforeNow()) {
+            if 
(earliestTaskStart.plus(ioConfig.getTaskDuration()).isBeforeNow() || 
group.getShutdownEarly()) {

Review Comment:
   in this implementation it would respect the stopTaskCount and not stop the 
task until a "stop slot" is available.
   
   I guess a alternate implementation could be to just short-circuit 
stopTaskCount and always stop tasks that have been stopped early, let me think 
about that a bit
   
   i feel like having a config is too complicated imo, it should be one 
behavior or the other



-- 
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: commits-unsubscr...@druid.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@druid.apache.org
For additional commands, e-mail: commits-h...@druid.apache.org

Reply via email to