snleee commented on code in PR #10387:
URL: https://github.com/apache/pinot/pull/10387#discussion_r1143513772


##########
pinot-plugins/pinot-minion-tasks/pinot-minion-builtin-tasks/src/main/java/org/apache/pinot/plugin/minion/tasks/mergerollup/MergeRollupTaskGenerator.java:
##########
@@ -275,12 +289,21 @@ public List<PinotTaskConfig> 
generateTasks(List<TableConfig> tableConfigs) {
           }
           _tableLowestLevelMaxValidBucketEndTimeMs.put(tableNameWithType, 
lowestLevelMaxValidBucketEndTimeMs);
         }
-        // Create delay metrics even if there's no task scheduled, this helps 
the case that the controller is restarted
+        // Create metrics even if there's no task scheduled, this helps the 
case that the controller is restarted
         // but the metrics are not available until the controller schedules a 
valid task
-        createOrUpdateDelayMetrics(tableNameWithType, mergeLevel, null, 
watermarkMs, bufferMs, bucketMs);
-        if (!isValidBucketEndTime(bucketEndMs, bufferMs, lowerMergeLevel, 
mergeRollupTaskMetadata)) {
-          LOGGER.info("Bucket with start: {} and end: {} (table : {}, 
mergeLevel : {}) cannot be merged yet",
-              bucketStartMs, bucketEndMs, tableNameWithType, mergeLevel);
+        List<String> sortedMergeLevels =
+            sortedMergeLevelConfigs.stream().map(e -> 
e.getKey()).collect(Collectors.toList());
+        if (processAll) {

Review Comment:
   cool. what will be the alert mechanism for the new metric? Probably, we 
alert if numBucketsToProcess > 0 for more than x hours/days?



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