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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]