-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allowing empty segments with no offset advancing #12703
Comments
I think we don't seal them right now because we don't support empty segment before. Since we can support empty segment now, we should be able to seal them. We want to revisit the timestamp used for empty segment (using current time should work) so that retention manager can remove them properly. |
Hey @Jackie-Jiang any updates on this? Is this as straight-forward as removing these lines? Lines 334 to 338 in 0f92742
Saw this in one of our tables today. The table existed for more than a year and we enabled snapshot on it recently. Now since the last consuming segment (which was like months old) never received any message, the snapshot flow didn't run and that entire partition was knocked out of upsert-compaction flow. [Update] I have tried to fix this issue for partial-upsert tables here - #13285 (comment) |
I think so. The drawback is that we might end up with a lot of segments that are all empty, but I guess we can make retention manager keep cleaning up empty segments (it might already do) as long as they are not the last completed segment. |
One other issue we've seen (QA only so far) from our multi-kafka cluster setup
|
This is a followup from #8929, but in the case of 0 data being consumed. We've since found a poor interaction between Pinot and our s3 lifecycling.
Is there any reason we can't seal a segment where the offset hasn't advanced? In this case, we would have had N segments for this partition all with 0 records and the same start/end offset.
cc @Jackie-Jiang @priyen-stripe
The text was updated successfully, but these errors were encountered: