tibrewalpratik17 commented on code in PR #14742: URL: https://github.com/apache/pinot/pull/14742#discussion_r1904767265
########## pinot-plugins/pinot-minion-tasks/pinot-minion-builtin-tasks/src/main/java/org/apache/pinot/plugin/minion/tasks/upsertcompactmerge/UpsertCompactMergeTaskGenerator.java: ########## @@ -296,18 +317,22 @@ public static SegmentSelectionResult processValidDocIdsMetadata(Map<String, Stri // variables to maintain current group sum long currentValidDocsSum = 0; long currentTotalDocsSum = 0; + double currentOutputSegmentSizeInBytes = 0.0; for (SegmentMergerMetadata segment : segments) { long validDocs = segment.getValidDocIds(); long invalidDocs = segment.getInvalidDocIds(); + double expectedSegmentSizeInBytes = segment.getSegmentSizeInBytes(); Review Comment: Based on the following: https://github.com/apache/pinot/blob/88805f2605e3ae2783f8ca5aee13f45b93d44125/pinot-segment-local/src/main/java/org/apache/pinot/segment/local/indexsegment/immutable/ImmutableSegmentImpl.java#L218 it seems on-disk size. -- 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