9aman commented on code in PR #16856:
URL: https://github.com/apache/pinot/pull/16856#discussion_r2377793231
##########
pinot-controller/src/main/java/org/apache/pinot/controller/validation/OfflineSegmentValidationManager.java:
##########
@@ -73,10 +76,23 @@ protected void processTable(String tableNameWithType) {
LOGGER.warn("Failed to find table config for table: {}, skipping
validation", tableNameWithType);
return;
}
+ updateResourceUtilizationMetric(tableNameWithType);
validateOfflineSegmentPush(tableConfig);
}
}
+ private void updateResourceUtilizationMetric(String tableNameWithType) {
+ if
(_resourceUtilizationManager.isResourceUtilizationWithinLimits(tableNameWithType,
+ UtilizationChecker.CheckPurpose.TASK_GENERATION) ==
UtilizationChecker.CheckResult.FAIL) {
Review Comment:
That makes sense. Thanks.
--
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]