somandal commented on code in PR #15518: URL: https://github.com/apache/pinot/pull/15518#discussion_r2040004992
########## pinot-controller/src/main/java/org/apache/pinot/controller/helix/core/rebalance/ZkBasedTableRebalanceObserver.java: ########## @@ -205,6 +209,17 @@ public int getNumUpdatesToZk() { return _numUpdatesToZk; } + /** + * Emits the rebalance progress in percent to the metrics. Uses the percentage of remaining segments to be added as + * the indicator of the overall progress. + * @param overallProgress the latest overall progress + */ + private void emitProgressMetric(TableRebalanceProgressStats.RebalanceProgressStats overallProgress) { + _controllerMetrics.setValueOfTableGauge(_tableNameWithType + "." + _tableRebalanceContext.getOriginalJobId(), Review Comment: nit: let's add a comment to explain why original job ID is used instead of just the job ID? -- 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