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.

KIP-62 / KAFKA-3888: Allow consumer to send heartbeats from a background thread

See original GitHub issue

Allows consumers to take their time processing messages without being timed out from their consumer group.

max_poll_records is a decent workaround for most of the pain here, but it’d still be nice to add this for consumers that have inconsistent message processing times.

Related issues: #872, #544

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:4
  • Comments:27 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
jeffwidmancommented, Sep 1, 2017

I would like to start working on this, we have multiple services at my day job that are impacted by this (and just realized there may be more due to #1039).

Unfortunately, I’ve never really worked with Java, so will be a bit slow trying to figure this out.

@tvoinarovskyi do you have any pointers on where to look in the Java code for where to start changing things compared to how they are in kafka-python today?

2reactions
tvoinarovskyicommented, Feb 8, 2017

Hey @jeffwidman Sorry, but GIL will not block you from doing IO in a separate thread. At least if you are not doing something crazy like passing all messages in a pure C code, that processes them. Python will yield GIL after some time (python3) or instruction count (python2), so as long as you are not stuck in C code it should be OK.

Read more comments on GitHub >

github_iconTop Results From Across the Web

KIP-62: Allow consumer to send heartbeats from a background
When a rebalance begins, the background thread will continue sending heartbeats. The consumer will not rejoin the group until processing ...
Read more >
What does the heartbeat thread do in Kafka Consumer?
Obviously the easiest solution is to send some status updates via network saying that we're still alive and evict each other based on...
Read more >
Confluent Platform 3.1.1 Release Notes
... KAFKA-3888: Allow consumer to send heartbeats in background thread (KIP-62); KAFKA-3920: Add Schema source connector to Kafka Connect ...
Read more >
Prevent kafka consumer from timing out for long process
Since Kafka 0.10.1, consumers do have a background thread for sending heartbeats: ...
Read more >
Kafka Misc - Massive Technical Interviews Tips
https://issues.apache.org/jira/browse/KAFKA-3888. Allow consumer to send heartbeats in background thread (KIP-62)
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