rohityadav1993 commented on code in PR #16777:
URL: https://github.com/apache/pinot/pull/16777#discussion_r2349864005
##########
pinot-controller/src/main/java/org/apache/pinot/controller/helix/core/minion/generator/BaseTaskGenerator.java:
##########
@@ -68,17 +68,35 @@ public long getTaskTimeoutMs() {
}
@Override
- public int getNumConcurrentTasksPerInstance() {
+ public int getNumConcurrentTasksPerInstance(String minionTag) {
String taskType = getTaskType();
- String configKey = taskType +
MinionConstants.NUM_CONCURRENT_TASKS_PER_INSTANCE_KEY_SUFFIX;
- String configValue = _clusterInfoAccessor.getClusterConfig(configKey);
+
+ // Priority 1: Check minion tenant specific cluster config
+ if (minionTag != null) {
Review Comment:
Good suggestion, let me add a generic method and update getTaskTimeoutMs,
getMaxAllowedSubTasksPerTask as well to use the generic method.
--
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]