xiangfu0 commented on code in PR #12940: URL: https://github.com/apache/pinot/pull/12940#discussion_r1580445243
########## pinot-controller/src/main/java/org/apache/pinot/controller/helix/SegmentStatusChecker.java: ########## @@ -135,6 +138,17 @@ protected void postprocess(Context context) { _controllerMetrics.setValueOfGlobalGauge(ControllerGauge.UPSERT_TABLE_COUNT, context._upsertTableCount); _controllerMetrics.setValueOfGlobalGauge(ControllerGauge.DISABLED_TABLE_COUNT, context._disabledTables.size()); + _tierBackendGauges.forEach(_controllerMetrics::removeGauge); Review Comment: then you need to add `_tierBackendGauges.clear()` to remove all the existing gauges right? Otherwise this set is increasing all the time. -- 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