These are chat archives for arnaud-lb/php-rdkafka

28th
Mar 2017
Joe Green
@joegreen88
Mar 28 2017 11:04
I've upgraded librdkafka to v0.9.4 and my php process is still not terminating
is there anything I need to do in addition to $consumer->unsubscribe() ?
Joe Green
@joegreen88
Mar 28 2017 11:27
Also tried reducing socket.blocking.max.ms
Joe Green
@joegreen88
Mar 28 2017 11:36
@arnaud-lb Have you encountered this issue before? PHP7, high level consumer, I have my loop set up to run for a certain amount of time, after the loop I call $consumer->unsubscribe(), then script ends. But php process is left hanging after consume loop is finished.
Magnus Edenhill
@edenhill
Mar 28 2017 11:37
@joegreen88 file an issue on php-rdkafka with a small reproducible test case
Joe Green
@joegreen88
Mar 28 2017 16:30
I've solved the issue, by unsetting the variable containing the RdKafka\KafkaConsumer instance after unsubscribing
Not sure why that works but it does :thumbsup: