-
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
track segments for snapshotting even if they lost all comparisons #13388
Conversation
.../src/main/java/org/apache/pinot/segment/local/upsert/BasePartitionUpsertMetadataManager.java
Show resolved
Hide resolved
.../src/main/java/org/apache/pinot/segment/local/upsert/BasePartitionUpsertMetadataManager.java
Show resolved
Hide resolved
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #13388 +/- ##
============================================
+ Coverage 61.75% 62.03% +0.28%
+ Complexity 207 198 -9
============================================
Files 2436 2550 +114
Lines 133233 140262 +7029
Branches 20636 21799 +1163
============================================
+ Hits 82274 87014 +4740
- Misses 44911 46647 +1736
- Partials 6048 6601 +553
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM overall! Left a nit comment.
It's possible that docs from a segment lost all comparison with docs from other segments, thus not going to call any of those methods addDocId/replaceDocId where we track segments for snapshotting. So in this PR, we track segments for snapshotting in addSegment/replaceSegment high level entry methods, beside replaceDocId/removeDocId where the existing segments may be updated. This should keep a complete set of segments being updated since last snapshotting.
Also made a fix for another minor bug that some segments were not removed from the track Set after taking snapshot for them.
The batch mode of consistent view feature is also subject to this issue, i.e missing segment that lost all comparison. Will address that in separate RP so that changes can be reverted separately in case.