Hi phobos team, By reading the current code, it would only close the producer when `@producer_enable`: https://github.com/phobos/phobos/blob/c9534923d0eb7460ecf74fba34526545c4220e90/lib/phobos/listener.rb#L115-L118 This assumes we have a class that extends both Listener and Producer. In our code, we have something like: ``` class KafkaProducer include Phobos::Producer end ``` ..and it has been used in the consumer/listener, but didn't get closed when we reboot the consumer. 1. What's the problem that if we don't close the producer connection during deployment? 2. Could we go through `OpenSpace` find all the classes that inherit Phobos::Producer and close them? Thanks!
Hi phobos team,
By reading the current code, it would only close the producer when
@producer_enable:phobos/lib/phobos/listener.rb
Lines 115 to 118 in c953492
This assumes we have a class that extends both Listener and Producer. In our code, we have something like:
..and it has been used in the consumer/listener, but didn't get closed when we reboot the consumer.
OpenSpacefind all the classes that inherit Phobos::Producer and close them?Thanks!