-
Notifications
You must be signed in to change notification settings - Fork 640
feat(watermark): Clean state in DynamicFilter by watermark in right side #6473
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
Conversation
16fa6bd
to
7708d2b
Compare
Codecov Report
@@ Coverage Diff @@
## main #6473 +/- ##
==========================================
+ Coverage 73.22% 73.24% +0.01%
==========================================
Files 1024 1024
Lines 164019 164118 +99
==========================================
+ Hits 120102 120201 +99
Misses 43917 43917
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
@@ -691,7 +720,27 @@ impl<S: StateStore> StateTable<S> { | |||
} | |||
} | |||
} | |||
if let Some(range_end_suffix) = range_end_suffix { |
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.
Does it means that we must delete-ranges for every epoch ?
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.
Does it means that we must delete-ranges for every epoch ?
fixed
pub async fn commit( | ||
&mut self, | ||
new_epoch: EpochPair, | ||
watermark: Option<&ScalarImpl>, |
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.
I suggest an independent interface to pass this parameter and update last_watermark
.
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.
I suggest an independent interface to pass this parameter and update
last_watermark
.
fixed
Is there a way to add some unit tests based on watermark and check the behaviour? (maybe we can read directly from storage to see if the state below watermark is deleted, and also check the range cache's range is updated). |
7708d2b
to
5de83f9
Compare
I have just added a unit test. |
64f3f30
to
39723a6
Compare
now there are only dynamic filter changes |
Can this be mergerd now? |
I have no objection. plz kindly ask others which is active in this thread if necessary |
ac1adac
to
23d4ce8
Compare
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.
Rest LGTM
I hereby agree to the terms of the Singularity Data, Inc. Contributor License Agreement.
What's changed and what's your intention?
Clean state in
DynamicFilter
by watermark in right sideDo range delete by cached watermark among corresponding vnodes on barrier
Buffer and state table will both be cleaned
BarrierAlign
is modifiedIf comparator is
LessThan
, it will not be cleanedChecklist
./risedev check
(or alias,./risedev c
)Refer to a related PR or issue link (optional)
#6472