dang-stripe commented on code in PR #14469:
URL: https://github.com/apache/pinot/pull/14469#discussion_r1847735055
##########
pinot-plugins/pinot-minion-tasks/pinot-minion-builtin-tasks/src/main/java/org/apache/pinot/plugin/minion/tasks/upsertcompaction/UpsertCompactionTaskGenerator.java:
##########
@@ -218,10 +218,20 @@ public static SegmentSelectionResult
processValidDocIdsMetadata(Map<String, Stri
long totalDocs = validDocIdsMetadata.getTotalDocs();
double invalidRecordPercent = ((double) totalInvalidDocs / totalDocs)
* 100;
if (totalInvalidDocs == totalDocs) {
+ LOGGER.info("Segment {} contains only invalid records, adding it to
the deletion list", segmentName);
segmentsForDeletion.add(segment.getSegmentName());
} else if (invalidRecordPercent >= invalidRecordsThresholdPercent
&& totalInvalidDocs >= invalidRecordsThresholdCount) {
+ LOGGER.info("Segment {} contains {} invalid records out of {} total
records "
+ + "(count threshold: {}, percent threshold: {}),
adding it to the compaction list",
+ segmentName, totalInvalidDocs, totalDocs,
invalidRecordsThresholdCount,
+ invalidRecordsThresholdPercent);
segmentsForCompaction.add(Pair.of(segment, totalInvalidDocs));
+ } else {
+ LOGGER.info("Segment {} contains {} invalid records out of {} total
records "
+ + "(count threshold: {}, percent threshold: {}),
skipping it for compaction",
+ segmentName, totalInvalidDocs, totalDocs,
invalidRecordsThresholdCount,
+ invalidRecordsThresholdPercent);
Review Comment:
yep, i can switch to debug. i also added a summary log as well (how many
compacted vs. deleted vs. skipped).
--
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]