somandal commented on code in PR #15266: URL: https://github.com/apache/pinot/pull/15266#discussion_r2025535193
########## pinot-controller/src/main/java/org/apache/pinot/controller/helix/core/rebalance/ZkBasedTableRebalanceObserver.java: ########## @@ -284,4 +328,306 @@ public static TableRebalanceProgressStats.RebalanceStateStats getDifferenceBetwe (totalSegments == 0) ? 0 : ((double) rebalanceStats._segmentsToRebalance / totalSegments) * 100.0; return rebalanceStats; } + + /** + * Updates the overall progress stats based on the current step's progress stats. This should be called + * during the EV-IS convergence trigger to ensure the overall stats reflect the changes as they are made. + * @param rebalanceProgressStats the rebalance stats + * @param lastStepStats step level stats from the last iteration + * @param latestStepStats latest step level stats calculated in this iteration + * @return the newly calculated overall progress stats + */ + @VisibleForTesting + static TableRebalanceProgressStats.RebalanceProgressStats updateOverallProgressStatsFromStep( Review Comment: one ########## pinot-controller/src/main/java/org/apache/pinot/controller/helix/core/rebalance/ZkBasedTableRebalanceObserver.java: ########## @@ -284,4 +328,306 @@ public static TableRebalanceProgressStats.RebalanceStateStats getDifferenceBetwe (totalSegments == 0) ? 0 : ((double) rebalanceStats._segmentsToRebalance / totalSegments) * 100.0; return rebalanceStats; } + + /** + * Updates the overall progress stats based on the current step's progress stats. This should be called + * during the EV-IS convergence trigger to ensure the overall stats reflect the changes as they are made. + * @param rebalanceProgressStats the rebalance stats + * @param lastStepStats step level stats from the last iteration + * @param latestStepStats latest step level stats calculated in this iteration + * @return the newly calculated overall progress stats + */ + @VisibleForTesting + static TableRebalanceProgressStats.RebalanceProgressStats updateOverallProgressStatsFromStep( Review Comment: done -- 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