-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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(plugin-server): run node-rdkafka with cooperative rebalancing patched in #17747
Conversation
072e3a4
to
347a78f
Compare
I talked to @xvello about this. Their preference was to use a Git(Hub) dependency, so I tried that.
We have a few options:
Thoughts? |
347a78f
to
2ca3308
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.
Thanks for looking into it!
Sorry about the pnpm git dependency side-quest, thanks for looking into it though. There's a risk of subtle breakages from changing rdk, so let's target a Tuesday deploy next week?
We should also document how the patch was generated . Maybe add a section in plugin-server/README.md
?
Added directions, and Tuesday sounds good. |
…atched in (#17747) * Remove node-rdkafka-acosom * Add node-rdkafka * Replace node-rdkafka-acosom imports with node-rdkafka * Patch node-rdkafka with changes from https://github.com/PostHog/node-rdkafka/ * Add patch directions to README
Problem
We run a fork of node-rdkafka that supports cooperative rebalancing but doesn't keep up with upstream node-rdkafka nor librdkafka. The main (Blizzard) upstream repo seems to be alive and has some bugfixes, features, and runs the latest librdkafka (2.2.0). I prefer to stay up to date on clients for systems like Kafka where the clients are smart and do a lot of coordination.
So...
posthog/plugin-server/package.json
Lines 140 to 142 in b82890e
We could, alternatively, patch acosom-node-rdkafka up to librdkafka 2.2.0. 🤷 I'm indifferent, these 2 repos are pretty similar.
Changes
Swap
acosom-node-rdkafka
for upstreamnode-rdkafka
with the acosom cooperative rebalance patch applied.👉 Stay up-to-date with PostHog coding conventions for a smoother review.
How did you test this code?
Existing tests. We'll need to carefully roll this out.