mluvin-stripe commented on code in PR #17862:
URL: https://github.com/apache/pinot/pull/17862#discussion_r2966910756
##########
pinot-controller/src/main/java/org/apache/pinot/controller/ControllerConf.java:
##########
@@ -1143,13 +1148,19 @@ public int getDiskUtilizationCheckTimeoutMs() {
}
public long getResourceUtilizationCheckerInitialDelay() {
- return getProperty(RESOURCE_UTILIZATION_CHECKER_INITIAL_DELAY,
DEFAULT_RESOURCE_UTILIZATION_CHECKER_INITIAL_DELAY);
+ return isResourceUtilizationCheckerCollectUsageAtStartupEnabled() ? 0L
+ : getProperty(RESOURCE_UTILIZATION_CHECKER_INITIAL_DELAY,
DEFAULT_RESOURCE_UTILIZATION_CHECKER_INITIAL_DELAY);
}
public long getResourceUtilizationCheckerFrequency() {
return getProperty(RESOURCE_UTILIZATION_CHECKER_FREQUENCY,
DEFAULT_RESOURCE_UTILIZATION_CHECKER_FREQUENCY);
}
+ public boolean isResourceUtilizationCheckerCollectUsageAtStartupEnabled() {
Review Comment:
ah i was following other boolean configs, and they have `Enabled` at the end
-- e.g.
https://github.com/apache/pinot/blob/c8dccfb5f2b72137df540d761eb9fff6ee2fa34a/pinot-controller/src/main/java/org/apache/pinot/controller/ControllerConf.java#L1153-L1164
--
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]