-
Notifications
You must be signed in to change notification settings - Fork 2.5k
[HUDI-2892][BUG]Pending Clustering may stain the ActiveTimeLine and lead to incomplete query results #4172
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
[HUDI-2892][BUG]Pending Clustering may stain the ActiveTimeLine and lead to incomplete query results #4172
Changes from 4 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -136,6 +136,14 @@ public HoodieTimeline filterPendingCompactionTimeline() { | |
| instants.stream().filter(s -> s.getAction().equals(HoodieTimeline.COMPACTION_ACTION) && !s.isCompleted()), details); | ||
| } | ||
|
|
||
| @Override | ||
| public HoodieTimeline filterPendingCompactionAndReplaceTimeline() { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not required in this PR. In general, should we have something like As a side note, the
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nice idea. |
||
| return new HoodieDefaultTimeline( | ||
| instants.stream() | ||
| .filter(s -> s.getAction().equals(HoodieTimeline.COMPACTION_ACTION) || (s.getAction().equals(HoodieTimeline.REPLACE_COMMIT_ACTION) && !s.isCompleted())), | ||
| details); | ||
| } | ||
|
|
||
| @Override | ||
| public HoodieDefaultTimeline findInstantsInRange(String startTs, String endTs) { | ||
| return new HoodieDefaultTimeline( | ||
|
|
||
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.
possible to use
filterInflightsAndRequested()instead of creating a new APIfilterPendingCompactionAndReplaceTimeline()?Uh oh!
There was an error while loading. Please reload this page.
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.
Sure thing, changed. Maybe use
!s.isCompletesame as before is more accurate thanfilterInflightsAndRequested():>