Net.ReadTimeout
is not a network-level property
#2820
Labels
needs-investigation
Issues that require followup from maintainers
stale/exempt
Issues and pull requests that should never be closed as stale
Description
The description of the
Net
struct says that inner properties correspond to network-level configuration. However,Net.ReadTimeout
is affected by some other timeouts, i.e. ifConsumer.Group.Rebalance.Timeout
is greater thanNet.ReadTimeout
the rebalance fails withi/o timeout
error. Perhaps, Kafka does not reply immediately to the client.At the moment, the only way to make other timeouts work is to set
Net.ReadTimeout
as the longest timeout. However, this may lead to problems with actual network issues because there is no actual network-level timeout.Versions
Configuration
Additional Context
I've done some research, and it seems, other Sarama users are dealing with the same problem: #1422 (comment).
I'm not sure, but perhaps, this parameter wasn't tested properly. While default settings for
sarama.Config
setConsumer.Group.Rebalance.Timeout
(60s) greater thanNet.ReadTimeout
(30s), the valueConsumer.Group.Rebalance.Timeout
is set to only 10 seconds in the corresponding test:sarama/functional_consumer_group_test.go
Lines 396 to 405 in 3e385a6
The text was updated successfully, but these errors were encountered: