kafka: deadlock when closing consumer without canceling context
Closed this issue · 0 comments
kruskall commented
kafka consumer Run method will block forever unless the context is canceled.
Trying to close the consumer with consumer.Close
will block forever.
This only happens with the Kafka consumer. Pubsublite is not affected.
To reproduce: cd systemtest && go test -v -run=TestShutdown/Kafka/close
consumer will block at:
Line 189 in e48ac80
The close method will block trying to acquire the lock.