-
Notifications
You must be signed in to change notification settings - Fork 23
do not panic during chunk dispatching if consumer suddenly closed #393
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
Conversation
It never happened to me too. It is strange to me because the client is set to |
@rsperl |
Unfortunately, i don't have an isolated example, only a very complex one in code I cannot share, though it was fairly reproducable. We have a rabbitmq proxy server using this library, and when we have multiple consumers processing many events, suddenly stopping the consumers (ctrl-c or a kill -9) will cause a panic in the proxy server with the stack trace above. |
It seems an interesting use case! Out of curiosity: How is it going with the library (except for this bug)? |
I don't, but we only started using streams a couple of months ago (and we are using rabbitmq 3.12 btw). |
We've seen repeated panics when a consumer suddenly goes away:
This PR ensures that the
consumer.chunkForConsumer
channel is open before dispatching a chunk to it.