You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by GitBox <gi...@apache.org> on 2020/11/03 13:59:13 UTC

[GitHub] [incubator-pinot] snleee commented on a change in pull request #6094: Implement the segment merge task generator

snleee commented on a change in pull request #6094:
URL: https://github.com/apache/incubator-pinot/pull/6094#discussion_r516402859



##########
File path: pinot-controller/src/main/java/org/apache/pinot/controller/helix/core/minion/generator/TaskGeneratorUtils.java
##########
@@ -104,4 +106,33 @@ private static boolean isTaskOlderThanOneDay(String taskName) {
         Long.parseLong(taskName.substring(taskName.lastIndexOf(PinotHelixTaskResourceManager.TASK_NAME_SEPARATOR) + 1));
     return System.currentTimeMillis() - scheduleTimeMs > ONE_DAY_IN_MILLIS;
   }
+
+  /**
+   * Get all the segments that are scheduled for all existing tables.
+   *
+   * @param taskType Task type
+   * @param clusterInfoAccessor Cluster info accessor
+   * @return a map of table name as a key and the list of scheduled segments as the value.
+   */
+  public static Map<String, Set<String>> getScheduledSegmentsMap(@Nonnull String taskType,

Review comment:
       removed




----------------------------------------------------------------
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.

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



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