-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Assertion `!*"refcnt sub-zero"' failed. #591
Comments
Hey, can you elaborate some on this, what do you mean by not destroying entirely?
Are you using latest master? Is it reproducible? Was the broker that is now Connection refused, previously up? |
We destroy everything we use, but we do not call: rd_kafka_wait_destroyed(); at the end of each cycle, as we are time-bound and cannot wait for global state to be destroyed every time. We are using 0.9.0 I'm pretty sure. It is reproducible, though I'll have to get back to you tomorrow or the following day on the test itself. As far as I can recall, the brokers were never down. Once the engineer that created the test comes back I can get you the specifics. |
There's been a lot of fixes since 0.9.0 and I strongly suggest that you try latest master instead. Also, with >=0.9 wait_destroyed() is no longer needed, rd_kafka_destroy() is now blocking until all internals have been cleaned up (this was easier for people to reason about) |
We will try out master and let you know if it solves the issue, thank you. However, we will probably wait until 0.9.1 to officially move over. |
Just an update: the issue is hard to reproduce, and we haven't had resources the past week to look deeper into it. We will be trying this week hopefully. |
Using librdkafka and we came across an issue that took down our application during stress tests. The stack trace from the core file looks like so:
An excerpt of the log:
Assertion failure is due to an extra decref on a RD_KAFKA_OP_PARITION_LEAVE :
A little background: simple consumer; we load in 10 second increments (recreating rdkafka confs each time without destroying rdkafka entirely (so maybe some cacheing issue?)
Let me know what other information would be valuable.
The text was updated successfully, but these errors were encountered: