Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upconsumer group shutdown: data race #1355
Comments
|
I experienced the same, I was wondering if this is something missing from the doc. |
|
Do you mean this -> https://github.com/Shopify/sarama/blob/master/consumer_group.go#L82-L84 |
|
No. It works fine if to close the client after the consumer group is closed, but if to try to close the client before the consumer group is closed result in a data race. And it could be that just not to do it as the client is reused, but the thing is that the consumer group can hang on close, and a DR is not a nice thing to have trying to enforce shutdown. Yet, if it is intended feel free to close. If the word |
|
Thank you for taking the time to raise this issue. However, it has not had any activity on it in the past 90 days and will be closed in 30 days if no updates occur. |
Versions
Sarama Version: d84c59b2a2d87f185d91a1cc426a1f4d4e9365109fe0d96cbd2404c3a57c365a / release v1.22.0
Kafka Version: kafka_2.12-2.1.0.jar
Go Version: go version go1.12.1 linux/amd64
Configuration
What configuration values are you using for Sarama and Kafka?
Kafka: a single topic with only 1 partition and 2 consumers in a single consumer group
Logs
Problem Description
If the client that was used in creating a consumer group will be closed first right before the close of the consumer group itself, this cs close will produce a data race.