IBM / sarama

Sarama is a Go library for Apache Kafka.
MIT License
11.57k stars 1.76k forks source link

consumer group can not stop refresh meta data after context canceled. #2991

Open erlangtui opened 1 month ago

erlangtui commented 1 month ago
Description
Versions
Sarama Kafka Go
1.38.1 kafka_2.11-1.1.1 1.19
Configuration
Logs
logs: CLICK ME

``` ```

Additional Context
erlangtui commented 1 month ago

the above happened when a broker is down

puellanivis commented 1 month ago

Hm… yeah. We even have the context available to plumb through that function. It seems that it’s relying on client.conf.Metadata.Timeout to provide a timeout/deadline rather than a context.WithDeadline or context.WithTimeout. It seems like plumbing a context through would even then simplify the deadline handling, since we wouldn’t have to do it all manually.