abhishekrb19 commented on code in PR #19040:
URL: https://github.com/apache/druid/pull/19040#discussion_r2873858671
##########
indexing-service/src/main/java/org/apache/druid/indexing/seekablestream/supervisor/SeekableStreamSupervisorIOConfig.java:
##########
@@ -119,6 +121,28 @@ public SeekableStreamSupervisorIOConfig(
}
this.idleConfig = idleConfig;
+ this.serverPriorityToReplicas = serverPriorityToReplicas;
+ if (this.serverPriorityToReplicas != null) {
+ final int serverPriorityReplicas =
this.serverPriorityToReplicas.values().stream().mapToInt(Integer::intValue).sum();
Review Comment:
Yep, good point. I’ve made the validation check stricter to use >= 0 since
the existing `replicas` can be set to 0
--
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]