do not panic during chunk dispatching if consumer suddenly closed#393
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.chunkForConsumerchannel is open before dispatching a chunk to it.