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 KafkaAdmin send to controller #1640

Merged
merged 1 commit into from
Nov 18, 2018
Merged

Conversation

jeffwidman
Copy link
Collaborator

@jeffwidman jeffwidman commented Nov 17, 2018

The KafkaAdmin controller send error handling was completely broken.
It also pinned the metadata version unnecessarily.

Additionally, several of the methods were sending to the controller
but either that was unnecessary, or just plain wrong. So updated
following the pattern of the Java Admin client.


This change is Reviewable

@jeffwidman jeffwidman changed the title Fix send to controller Fix KafkaAdmin send to controller Nov 17, 2018
@jeffwidman jeffwidman force-pushed the fix-send-to-controller branch from 240da06 to 8cd99b7 Compare November 17, 2018 10:38
@jeffwidman jeffwidman force-pushed the fix-send-to-controller branch 2 times, most recently from 4e77bdd to 6735ad2 Compare November 18, 2018 00:27
The controller send error handling was completely broken.
It also pinned the metadata version unnecessarily.

Additionally, several of the methods were sending to the controller
but either that was unnecessary, or just plain wrong. So updated
following the pattern of the Java Admin client.
@jeffwidman jeffwidman force-pushed the fix-send-to-controller branch from 6735ad2 to 4df9f63 Compare November 18, 2018 08:34
raise error_type(
"Request '{}' failed with response '{}'."
.format(request, response))
else:
Copy link
Owner

Choose a reason for hiding this comment

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

nice use of for / else !

@jeffwidman jeffwidman merged commit 5069088 into master Nov 18, 2018
@jeffwidman jeffwidman deleted the fix-send-to-controller branch November 18, 2018 23:16
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