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

Dont refresh metadata on failed group coordinator request unless needed #1006

Merged
merged 1 commit into from
Mar 3, 2017

Conversation

dpkp
Copy link
Owner

@dpkp dpkp commented Mar 3, 2017

Existing group coordinator discovery code triggers a metadata refresh on any error other than a small whitelist (GroupCoordinatorNotAvailableError). This PR drops the whitelist in favor of a simple check for the invalid_metadata attribute on retriable kafka errors.

This is expected to reduce unneeded metadata refreshes when, for example, the socket is simply still connecting (NodeNotReadyError).

@dpkp dpkp force-pushed the check_invalid_metadata branch from 60b4c9d to 537bfd1 Compare March 3, 2017 22:16
@dpkp dpkp merged commit 7b727ab into master Mar 3, 2017
@dpkp dpkp deleted the check_invalid_metadata branch March 13, 2017 19:41
88manpreet pushed a commit to Yelp/kafka-python that referenced this pull request Apr 7, 2017
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.

1 participant