tibrewalpratik17 commented on code in PR #12786:
URL: https://github.com/apache/pinot/pull/12786#discussion_r1551012215


##########
pinot-controller/src/main/java/org/apache/pinot/controller/helix/core/minion/PinotTaskManager.java:
##########
@@ -624,7 +626,15 @@ private List<String> scheduleTask(PinotTaskGenerator 
taskGenerator, List<TableCo
    * controller. Returns a map from the task type to the list of tasks 
scheduled.
    */
   public synchronized Map<String, List<String>> scheduleTasks(String 
tableNameWithType) {
-    return scheduleTasks(Collections.singletonList(tableNameWithType), false);
+    return scheduleTasks(Collections.singletonList(tableNameWithType), false, 
null);
+  }
+
+  /**
+   * Public API to schedule tasks (all task types) for the given table on a 
specific instance tag.
+   * It might be called from the non-leader controller. Returns a map from the 
task type to the list of tasks scheduled.
+   */
+  public synchronized Map<String, List<String>> scheduleTasks(String 
tableNameWithType, String minionInstanceTag) {

Review Comment:
   Yeah I started with that but I see there were 35+ places in tests where we 
were calling that method so I ended up with adding a new function for 
simplicity. Lmk if we want to remove this.



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

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


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

Reply via email to