-
Notifications
You must be signed in to change notification settings - Fork 589
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
perf(connector): do not create span for parsing each row #13105
Conversation
@@ -579,14 +583,14 @@ async fn into_chunk_stream<P: ByteStreamSourceParser>(mut parser: P, data_stream | |||
match txn_ctl { | |||
TransactionControl::Begin { id } => { | |||
if let Some(Transaction { id: current_id, .. }) = ¤t_transaction { | |||
tracing::warn!(parent: &parse_span, current_id, id, "already in transaction"); | |||
tracing::warn!(current_id, id, "already in transaction"); |
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.
Transaction is only applicable to CDC source, where split_id
and offset
is not that useful. So simply omit them here.
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.
Signed-off-by: Bugen Zhao <[email protected]>
Signed-off-by: Bugen Zhao <[email protected]>
7bcf367
to
f667892
Compare
Codecov Report
@@ Coverage Diff @@
## main #13105 +/- ##
==========================================
+ Coverage 68.26% 68.34% +0.08%
==========================================
Files 1498 1498
Lines 252574 252584 +10
==========================================
+ Hits 172411 172621 +210
+ Misses 80163 79963 -200
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 |
Signed-off-by: Bugen Zhao [email protected]I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.
What's changed and what's your intention?
In #13073 and #12959 (comment), we find the performance overhead of constructing row-level tracing span is not acceptable. So we remove that in this PR, and manually pass the row context.
Benchmark shows that there's no cost for happy path, which is expected.
fix #12959
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.