-
Notifications
You must be signed in to change notification settings - Fork 597
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
chore(deps): bump rdkafka to v0.34.0 and librdkafka to v2.2.0 #11232
Conversation
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.
Note that the upstream rust-rdkafka is still using librdkafka v1.9.2. But we require a newer version since we depend on the DNS resolution callback feature from Materialize, which has been included in the upstream librdkafka since v2.0.0. So we forked rdkafka-sys and updated its librdkafka to the latest v2.2.0, then switched rdkafka-sys from Mz's fork to our fork.
The story is a little long. Basically it means we switched to latest versions, and applied the same patch as the MZ fork?
Another question is what's the motivation to upgrade (besides keeping it up to date)? Since it's a critical dependency, and the upgrade is across multiple versions (v0.29.0->v0.33.2, v1.9.2->v2.2.0), has anyone went through the CHANGELOG, and/or tested it?
Yes. The Mz's patch has been included in the latest version.
The original motivation was to fix potential memory leak in rdkafka according to @shanicky. But it looks like we have found the reason from another source (see #10888). So this upgrade is not critical at this time. We can pause it until every change has been reviewed and test passed. The failure of e2e source/sink tests shows there might be problems somewhere :( |
Initially, we suspected that rdkafka might have potential memory leak risks, and we were relying on a version from eight months ago, so we asked Runji if we could upgrade. Later, we found out that the issue likely stemmed from our configuration setup, so the upgrade didn’t seem as urgent. If there is an issue, it feels like we can delay it. 🥵 |
IMO 8 months isn’t that old but is also quite old. 🤣 Btw, I would recommend update regularly and one version at a time. Then we can review the changes much more easily. Also we can avoid cases like we upgrade it to fix a problem, but didn’t noticed the changes and introduced another problems..
According to the reasons above, I think it’s a good time to begin reviewing the changes now. 😁(Although not urgent) |
Well, but we have a PR depending on the upgrade now. 🤣 #11203 |
Don't mind. I can remove the new-version-specific option from that PR if you need to delay this. |
Reminder: please help to update and after this PR gets merged |
Seems there are some problems in this madsim-rdkafka update. An unit test is blocking madsim-rs/madsim@6932616. Needs more investigation. |
This PR has been open for 60 days with no activity. Could you please update the status? Feel free to ping a reviewer if you are waiting for review. |
121fee1
to
f53a42d
Compare
Signed-off-by: Runji Wang <[email protected]>
f53a42d
to
205ffee
Compare
Signed-off-by: Runji Wang <[email protected]>
I found the reason why previous update was blocking. The |
Codecov Report
@@ Coverage Diff @@
## main #11232 +/- ##
==========================================
- Coverage 69.22% 69.22% -0.01%
==========================================
Files 1483 1483
Lines 243680 243680
==========================================
- Hits 168693 168676 -17
- Misses 74987 75004 +17
Flags with carried forward coverage won't be shown. Click here to find out more. see 6 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.
Since 1.3 already branches off and will soon be published, and seemingly no one is going to really review the CHANGELOG in depth, I'm OK to merge this into main now, and just let it go through tests of time.. 🤡
I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.
What's changed and what's your intention?
As title. Please also review the change in madsim-rs/madsim#173, and see what's changed from the original rdkafka in this commit.
Checklist
./risedev check
(or alias,./risedev c
)Documentation
Click here for Documentation
Types of user-facing changes
Please keep the types that apply to your changes, and remove the others.
Release note