-
Notifications
You must be signed in to change notification settings - Fork 599
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(cdc): introduce with option to configure cdc snapshot #16426
Conversation
…' into siyuan/cdc-snapshot-options-test
1a11d29
to
e13726a
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.
The rest LGTM
Self { | ||
disable_backfill: false, | ||
snapshot_barrier_interval: 1, | ||
snapshot_batch_size: 1000, |
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.
Should we follow the batch_size
specified in the config file instead?
pub use upstream_table::external::ExternalStorageTable; | ||
|
||
#[derive(Debug, Clone)] | ||
pub struct CdcScanOptions { |
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 appears to be a duplicate of the one defined in the frontend
crate with the same name. Can we merge them?
let options = scan_options.unwrap_or(CdcScanOptions { | ||
disable_backfill, | ||
..Default::default() | ||
}); |
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 would suggest moving this into from_proto
so that we can accept a single field of scan_options: CdcScanOptions
in new
.
I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.
What's changed and what's your intention?
Introduce
snapshot.interval
andsnapshot.batch_size
WITH options to create a table from cdc source.snapshot.interval
: barrier interval for buffering upstream eventssnapshot.batch_size
: batch size for snapshot read to upstream tablefollow up of #16349
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.
Introduce
snapshot.interval
andsnapshot.batch_size
WITH options to create a table from cdc source.snapshot.interval
: barrier interval for buffering upstream events, default to 1snapshot.batch_size
: batch size for snapshot read to upstream table, default to 1000