Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve KafkaConsumer group rejoin / disable heartbeats during join group #1695

Merged
merged 1 commit into from
Jan 15, 2019

Conversation

dpkp
Copy link
Owner

@dpkp dpkp commented Jan 13, 2019

Fixes #1691 and applies fixes based on upstream java client:

(1) rejoin_needed is reset to False in final success callback, not in the JoinResponse callback.
(2) also check that join_future is not pending in ensure_active_group
(3) disable heartbeats during join group

See also: KAFKA-3782, KAFKA-5611


This change is Reviewable

Copy link
Collaborator

@jeffwidman jeffwidman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good from a Python perspective, I didn't have time to look through the upstream Jira tickets, I may be able to do that later today, but can't guarantee it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug report: sync group request timeout error will lead to consumer come in an abnormal status
2 participants