You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by "asdf2014 (via GitHub)" <gi...@apache.org> on 2024/06/05 01:58:45 UTC

Re: [PR] Introduce ability to scale supervisor through overlord's REST API (druid)

asdf2014 commented on code in PR #16350:
URL: https://github.com/apache/druid/pull/16350#discussion_r1626825539


##########
indexing-service/src/main/java/org/apache/druid/indexing/seekablestream/supervisor/SeekableStreamSupervisor.java:
##########
@@ -559,6 +569,27 @@ private void changeTaskCountInIOConfig(int desiredActiveTaskCount)
     }
   }
 
+  private boolean shoudlProcessTaskCoutOrReplicaChange(
+      Integer desiredTaskCount,
+      Integer desiredReplicaCount,
+      int activeTaskCount,
+      int activeReplicaCount
+  )
+  {
+    // skip if desiredTaskCount is negative

Review Comment:
   ```suggestion
       // skip if desiredTaskCount is negative.
   ```



-- 
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-unsubscribe@druid.apache.org

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


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