Hi. Pinot team. [merge and rollup of Realtime upse...
# troubleshooting
c
Hi. Pinot team. [merge and rollup of Realtime upsert table without retention] I am using Upsert table without Retention in Pinot1.2 version. I perform UpsertCompactionTask and clean up InvalidDocs of segments. The problem is that over time, the size of segments becomes very small and the number of segments keeps increasing. Unfortunately, Minion merge rollup task is not available for upsert realtime table. Is there any case of work-around to solve this problem? Is there any work-around method that I can try? https://docs.pinot.apache.org/operators/operating-pinot/minion-merge-rollup-task
m
@Manish ^^
m
Unfortunately MergeRollup is not supported for upsert enabled tables. While using UpsertCompactionTask, you can ensure that larger segments are created by using
maxNumRecordsPerSegment
in the taskConfig of UpsertCompactionTask .
maxNumRecordsPerSegment
controls how many docs are created per segment post compaction. Can you try this?
c
@Manish Hi 🙂 If I set maxNumRecordsPerSegment, will multiple segments be merged into one segment? Assuming maxNumRecordsPerSegment is 100. After removing InvalidDocs, if the number of documents in segment__0__0 + segment__0__1 + segment__0__2 is 100, will it be created as one segment? Did I understand correctly? I have one question. UpsertCompactionTask creates multiple SubTasks under one Task, and each SubTask seems to compact one segment.. Will this setting merge segments across multiple SubTasks?
m
Yes this feature was introduced recently. Your understanding is right. This configuration is per subtask and not across subtasks. With this configuration, each subtask will get enough segments to meet the maxNumRecordsPerSegment to create one segment out of it. You'll have to use the latest version of pinot to get this feature though.
c
@Manish How do I check if this PR is included in pinot 1.2 release?
m
Which release is/will this be a part of? Did not find this in the 1.3 RC1 release notes.
p
@Abhishek Sharma Can you check if #14305 is part of 1.3.0? If so, can you add it to the release notes?
a
Yes, it's present in the release and also documented. Check with PR number https://github.com/apache/pinot/pull/14477
p
Thanks for confirming!