-
Notifications
You must be signed in to change notification settings - Fork 596
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
fix(cdc): ensure connector is inited after the CREATE TABLE is finished #13130
Conversation
Will this be somehow related to #12476? |
Didn't look into this issue yet, will do later. |
7e108da
to
eff2edd
Compare
eff2edd
to
cf0b662
Compare
cf0b662
to
b6bc630
Compare
b6bc630
to
777557d
Compare
Codecov Report
@@ Coverage Diff @@
## main #13130 +/- ##
==========================================
+ Coverage 68.10% 68.14% +0.04%
==========================================
Files 1507 1507
Lines 255634 255674 +40
==========================================
+ Hits 174104 174237 +133
+ Misses 81530 81437 -93
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 21 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
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 for the reader part
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.
reset LGTM
) | ||
.await | ||
} | ||
create_split_reader(*props, splits, parser_config, source_ctx, data_gen_columns) |
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.
no await
here? I thought it is about to wait till recv handshake resp from embedded dbz
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.
We has await on the outer try_join_all
// In RisingWave we assume the upstream changelog may contain duplicate events and | ||
// handle conflicts in the mview operator, thus we don't need to obey the above | ||
// instructions. So we decrease the wait time here to reclaim jvm thread faster. | ||
.option("-Ddebezium.embedded.shutdown.pause.before.interrupt.ms=1"); |
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.
btw can you share more about the param?
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 is a timeout config to forcefully stop the engine thread.
https://github.com/debezium/debezium/blob/e67620d30ee12ce2c257b2fad2eca4259eaef0e6/debezium-embedded/src/main/java/io/debezium/embedded/EmbeddedEngine.java#L240-L247
…ed (#13130) (#13251) Co-authored-by: StrikeW <[email protected]>
I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.
What's changed and what's your intention?
CREATE TABLE
). Otherwise, the connector may start to run even after aDROP TABLE
has been executed and cause unexpected race condition happen on upstream DB.-Ddebezium.embedded.shutdown.pause.before.interrupt.ms
to embedded jvmFix the unstable citus-cdc integration test
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.