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:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]