Confluent.Kafka.ConsumeException: Local: Timed out
See original GitHub issueDescription
We are experiencing the below error intermittently while consuming the messages from Kafka
Confluent.Kafka.ConsumeException: Local: Timed out
at Confluent.Kafka.Consumer2.ConsumeImpl[K,V](Int32 millisecondsTimeout, IDeserializer
1 keyDeserializer, IDeserializer1 valueDeserializer) at Confluent.Kafka.Consumer
2.Consume(CancellationToken cancellationToken)
How to reproduce
The below configuration is using in our application return new ConsumerConfig { BootstrapServers = _consumerConfiguration.BootstrapServers, GroupId = _consumerConfiguration.GroupId, SessionTimeoutMs = 100000, AutoOffsetReset = AutoOffsetReset.Earliest, EnablePartitionEof = true, EnableAutoCommit = _consumerConfiguration.EnableAutoCommit };
Checklist
Please provide the following information:
- A complete (i.e. we can run it), minimal program demonstrating the problem. No need to supply a project file.
- Confluent.Kafka nuget version.
- Apache Kafka version.
- Client configuration.
- Operating system.
- Provide logs (with “debug” : “…” as necessary in configuration).
- Provide broker log excerpts.
- Critical issue.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:8 (3 by maintainers)
Top Results From Across the Web
Can't send message to kafka topic use Confluent.Kafka C# ...
This method work 5 minutes and finished with error : Local: Message timed out. If i use method Produce, the program goes next...
Read more >Enum ErrorCode | Confluent.Kafka
Enumeration of local and broker generated error codes. Namespace: Confluent.Kafka ... Transaction timeout is larger than the maximum value allowed by the ...
Read more >confluent_kafka API — confluent-kafka 2.2.0 documentation
KafkaException – Operation failed locally or on broker. ... timeout (float) – The maximum response time before timing out, or -1 for infinite...
Read more >kafka - Go Documentation Server
A timeout error indicates that the operation timed out locally. func (Error) String ¶. func (e Error) String() string. String returns a human...
Read more >Kafka Consumer configuration reference
The timeout used to detect client failures when using Kafka's group management facility. The client sends periodic heartbeats to indicate its liveness to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
ed-alertedh, I am seeing similar issue, have you got to the solution to it?
After these errors, some consumers doesn’t resume message/record processing even if partition has records and consumer is healthy and polling.
We have the same issue in Producer, Exception like this: Confluent.Kafka.ProduceException
2[System.String,System.String]: Local: Message timed out at Confluent.Kafka.Producer
2.ProduceAsync(TopicPartition topicPartition, Message`2 message, CancellationToken cancellationToken)