question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Consumer error Local_MaxPollExceeded is Fatal for consumer

See original GitHub issue

Description

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:closed
  • Created 4 years ago
  • Comments:18 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
edenhillcommented, Mar 21, 2020

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.

1reaction
tomasdemlcommented, Mar 20, 2020

One thing to note - we do not use consumer groups and assign the start offset manually.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found