Skip to content
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

out_rdkafka2: add patch for new version of rdkafka #505

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ttych
Copy link

@ttych ttych commented Dec 9, 2023

All PR are failing now because of rdkafka gem update.

The current code works with rdkafka 0.12.0,
and in 0.14.0 (there is no 0.13.0), the Rdkafka::Producer implementation has changed,
no more @client and Rdkafka::Producer::Client,
now there is a @native_client and Rdkafka::NativeKafka.

No update on this part of the code between 0.14.0 and 0.15.0.

There is a constraint in the out_rdkafka2, on the Rdkafka::Producer#close, to add a timeout,
which is not part of the standard gem.

I try to update this behavior since following the current way to patch.

Thanks.

@@ -509,7 +509,6 @@ You need to install rdkafka gem.
partition_key (string) :default => 'partition'
partition_key_key (string) :default => 'partition_key'
message_key_key (string) :default => 'message_key'
default_topic (string) :default => nil
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line in conf block appears twice,
I just removed one.

Signed-off-by: Thomas Tych <thomas.tych@gmail.com>
@ttych
Copy link
Author

ttych commented Dec 10, 2023

I just see #500,
so this is not a safe way to do it this way.

and also, waterdrop encapsulation for rdkafka is just for producer side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant