tibrewalpratik17 commented on code in PR #14469: URL: https://github.com/apache/pinot/pull/14469#discussion_r1847756329
########## pinot-plugins/pinot-minion-tasks/pinot-minion-builtin-tasks/src/main/java/org/apache/pinot/plugin/minion/tasks/BaseSingleSegmentConversionExecutor.java: ########## @@ -132,10 +131,9 @@ public SegmentConversionResult executeTask(PinotTaskConfig pinotTaskConfig) // Collect the task processing metrics from various single segment executors and publish them here. SegmentMetadataImpl segmentMetadata = new SegmentMetadataImpl(indexDir); - Object numRecordsPurged = segmentConversionResult.getCustomProperty(PurgeTaskExecutor.NUM_RECORDS_PURGED_KEY); + Integer numRecordsPurged = segmentConversionResult.getNumRecordsPurged(); if (numRecordsPurged != null) { - reportTaskProcessingMetrics(tableNameWithType, taskType, segmentMetadata.getTotalDocs(), - (int) numRecordsPurged); + reportTaskProcessingMetrics(tableNameWithType, taskType, segmentMetadata.getTotalDocs(), numRecordsPurged); Review Comment: @dang-stripe can we create a new metric - `COMPACTED_RECORDS_COUNT` instead. It will help in clear isolation when PurgeTask and UpsertCompactionTask are enabled together on a table. -- 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