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

librdkafka hanging on rd_kafka_destroy() #624

Closed
hendrik-schumacher opened this issue Apr 21, 2016 · 4 comments
Closed

librdkafka hanging on rd_kafka_destroy() #624

hendrik-schumacher opened this issue Apr 21, 2016 · 4 comments

Comments

@hendrik-schumacher
Copy link

We have a perl script with xs bindings that runs a kafka producer. This application finishes and calls rd_kafka_destroy().

We see this application hanging forever with the following three threads:

or
#0 0x00007f10a7657d3d in poll () at ../sysdeps/unix/syscall-template.S:81
#1 0x00007f10a69fb794 in rd_kafka_transport_poll () from /usr/lib/x86_64-linux-gnu/perl5/5.20/auto/KafkaClient/KafkaClient.so
#2 0x00007f10a69fb7d5 in rd_kafka_transport_io_serve () from /usr/lib/x86_64-linux-gnu/perl5/5.20/auto/KafkaClient/KafkaClient.so
#3 0x00007f10a69ef62a in ?? () from /usr/lib/x86_64-linux-gnu/perl5/5.20/auto/KafkaClient/KafkaClient.so
#4 0x00007f10a69ef9de in ?? () from /usr/lib/x86_64-linux-gnu/perl5/5.20/auto/KafkaClient/KafkaClient.so
#5 0x00007f10a69efef8 in ?? () from /usr/lib/x86_64-linux-gnu/perl5/5.20/auto/KafkaClient/KafkaClient.so
#6 0x00007f10a6a1a5c7 in ?? () from /usr/lib/x86_64-linux-gnu/perl5/5.20/auto/KafkaClient/KafkaClient.so
#7 0x00007f10a792b0a4 in start_thread (arg=0x7f10a518e700) at pthread_create.c:309
#8 0x00007f10a766087d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

We are using librdkafka 0.9.0. It may be possible that we had some broker connectivity issues when the application got stuck. Since the main thread just blocks on join we do not see any way to break out of this state.

@edenhill
Copy link
Contributor

Hi,

Ive fixed a number of lockup-on-termination problems since 0.9.0, could you try the latest master branch to see if the problem remains?

Also make sure all topic_t or message_t objects are properly destroyed prior to calling rd_kafka_destroy().

@hendrik-schumacher
Copy link
Author

Thanks for the heads-up. This is only happening for us in certain situations which we could not reproduce outside of production. Is there any release coming up we could deploy? Is master stable enough for selective deployment in production?

@edenhill
Copy link
Contributor

Yes, it is stable enough, a new release off master is imminent. (next week or the week after)

@hendrik-schumacher
Copy link
Author

Thanks. We will try out master next week.

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

No branches or pull requests

2 participants