Consumer error Local_MaxPollExceeded is Fatal for consumer
See original GitHub issueDescription
When my code got stuck (dumping, debugging, lack of system resources, bad code…), and as a result of it I do not call Consume
method on Consumer
longer than max.poll.interval.ms
Consumer throws exception with error
Code=Local_MaxPollExceeded
IsBrokerError=false
IsError=true
IsFatal=false
IsLocalError=true
Consumer
does not recover, and I need to restart my app (I suppose recreating consumer would also work). From my point of view, shouldn’t this error be Fatal
? If not why Consumer does not recover?
How to reproduce
Consume some message from topic, then break app using Thread.Sleep()
for longer interval than max.poll.interval.ms
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. 1.3.0
- Apache Kafka version. kafka_2.12-2.2.0
- Operating system. - windows/linux
Issue Analytics
- State:
- Created 4 years ago
- Comments:18 (8 by maintainers)
Top Results From Across the Web
Consumer Reports: What Insurers Need to Know
Consumer reports may include information about a person's credit history, medical conditions, driving record, criminal activity, and even their participation in ...
Read more >File a Consumer Complaint - Ohio Department of Insurance
Information to guide you through the complaint filing process.
Read more >File a Complaint
Consumer Complaint Center · File a Consumer Complaint Online · File an Independent Medical Review Application Online · Registered Users.
Read more >Filing a Complaint | DIFI - Arizona Department of Insurance
If you believe that an insurance company or insurance professional violated Arizona law: STEP 1. Scan and save to your computer documents and...
Read more >Consumer Bill of Rights - Superseded by Commissioner's ...
Failure to meet your obligations may affect your rights. Getting Information from the Department of Insurance and Your Insurance Company. 1.
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
Ah, I think I know what the problem is, you are not using Subscribe(), but Assign()ing partitions directly. The max.poll.interval.ms should not be enforced unless there is an active group subscription, this is a bug in librdkafka that we’ll fix for v1.4.0. The workaround is to set max.poll.interval.ms to its maximum value.
One thing to note - we do not use consumer groups and assign the start offset manually.