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

fix: retry topic request on ControllerNotAvailable #1586

Merged
merged 1 commit into from
Jan 24, 2020
Merged

fix: retry topic request on ControllerNotAvailable #1586

merged 1 commit into from
Jan 24, 2020

Conversation

dnwe
Copy link
Collaborator

@dnwe dnwe commented Jan 23, 2020

If an admin request to Create/Delete Topic{Partitions} receives a
ControllerNotAvailable kError back from Kafka, we should expire the
cached controller and refresh it from metadata.

Additionally add a Retry section to the Admin config similarly to
the Java AdminKafkaClient and consider this case one that is eligible to
be re-tried

Copy link
Contributor

@d1egoaz d1egoaz left a comment

Choose a reason for hiding this comment

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

just a nit to remove duplicate code.

Might want to have another 👀

admin.go Show resolved Hide resolved
If an admin request to Create/Delete Topic{Partitions} receives a
ControllerNotAvailable kError back from Kafka, we should expire the
cached controller and refresh it from metadata.

Additionally add a `Retry` section to the `Admin` config similarly to
the Java AdminKafkaClient and consider this case one that is eligble to
be re-tried.

Signed-off-by: Dominic Evans <dominic.evans@uk.ibm.com>
@dnwe
Copy link
Collaborator Author

dnwe commented Jan 24, 2020

@d1egoaz I had a few more attempts at re-skinning this change to be a bit neater and I've force pushed up what I think is the best of those — if you'd like to have a re-review and merge if you're happy

@d1egoaz d1egoaz merged commit e4d725d into IBM:master Jan 24, 2020
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.

2 participants