J-HowHuang commented on code in PR #15368: URL: https://github.com/apache/pinot/pull/15368#discussion_r2019489926
########## pinot-controller/src/main/java/org/apache/pinot/controller/helix/core/rebalance/RebalanceSummaryResult.java: ########## @@ -240,6 +240,92 @@ public Map<String, ServerSegmentChangeInfo> getServerSegmentChangeInfo() { } } + public static class ConsumingSegmentSummaryPerServer { + private final int _numConsumingSegmentToBeAdded; + private final Integer _totalOffsetsNeedToCatchUp; + + @JsonCreator + public ConsumingSegmentSummaryPerServer( + @JsonProperty("numConsumingSegmentToBeAdded") int numConsumingSegmentToBeAdded, + @JsonProperty("totalOffsetsNeedToCatchUp") @Nullable Integer totalOffsetsNeedToCatchUp) { + _numConsumingSegmentToBeAdded = numConsumingSegmentToBeAdded; + _totalOffsetsNeedToCatchUp = totalOffsetsNeedToCatchUp; + } + + @JsonProperty + public int getNumConsumingSegmentToBeAdded() { + return _numConsumingSegmentToBeAdded; + } + + @JsonProperty + @JsonInclude(JsonInclude.Include.NON_NULL) + public Integer getTotalOffsetsNeedToCatchUp() { + return _totalOffsetsNeedToCatchUp; + } + } + + public static class ConsumingSegmentToBeMovedSummary { + private final int _numConsumingSegmentsToBeMoved; + private final int _numServerGettingConsumingSegmentsAdded; + private final Map<String, Integer> _topConsumingSegmentsOffsetsToCatchUp; + private final Map<String, Integer> _oldestConsumingSegmentsToBeMovedInMinutes; Review Comment: comment added. I think I prefer to keep the name and address more on the docs side (as the same discussion on `getConsumingSegmentsAge` method name) -- 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