-
Notifications
You must be signed in to change notification settings - Fork 580
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
feat: support backfill_rate_limit for source backfill #19445
feat: support backfill_rate_limit for source backfill #19445
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
a29b177
to
13725fc
Compare
56d29e1
to
60bdf58
Compare
@@ -1412,7 +1411,7 @@ impl CatalogController { | |||
fragments.retain_mut(|(_, fragment_type_mask, stream_node)| { | |||
let mut found = false; | |||
if (*fragment_type_mask & PbFragmentTypeFlag::StreamScan as i32 != 0) | |||
|| (*fragment_type_mask & PbFragmentTypeFlag::Source as i32 != 0) |
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.
The previous code looks wrong: Alter backfill rate limit will affect MV on non-shared source
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.
seem so.
13725fc
to
bdf47a5
Compare
60bdf58
to
35c1612
Compare
bdf47a5
to
1789be9
Compare
35c1612
to
c4b4976
Compare
1789be9
to
39887aa
Compare
c4b4976
to
a28008b
Compare
39887aa
to
4469944
Compare
a28008b
to
9004675
Compare
4469944
to
cf75bff
Compare
9004675
to
bf1c884
Compare
Please also leave some doc on how to use the |
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, thanks!
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
// Backfill rate limit | ||
optional uint32 rate_limit = 7; |
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.
shall we directly change the field name for distinguish?
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.
It will be breaking change
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.
why? It keeps the same tag number. https://stackoverflow.com/questions/45431685/protocol-buffer-does-changing-field-name-break-the-message
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.
IIRC sql meta backend stores with JSON encoding
@@ -1412,7 +1411,7 @@ impl CatalogController { | |||
fragments.retain_mut(|(_, fragment_type_mask, stream_node)| { | |||
let mut found = false; | |||
if (*fragment_type_mask & PbFragmentTypeFlag::StreamScan as i32 != 0) | |||
|| (*fragment_type_mask & PbFragmentTypeFlag::Source as i32 != 0) |
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.
seem so.
cf75bff
to
2ff1259
Compare
bf1c884
to
3993c63
Compare
Merge activity
|
3993c63
to
a7a89ea
Compare
2ff1259
to
b9c3f70
Compare
…19466) (#19482) Signed-off-by: xxchan <[email protected]> Co-authored-by: Noel Kwan <[email protected]>
I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.
What's changed and what's your intention?
fix #19297
This is a missing feature. We support source_rate_limit for shared source executor, but cannot rate limit source backfill before this PR.
Checklist
./risedev check
(or alias,./risedev c
)Documentation
Release note
If this PR includes changes that directly affect users or other significant modifications relevant to the community, kindly draft a release note to provide a concise summary of these changes. Please prioritize highlighting the impact these changes will have on users.