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

Add Admin CreatePartitions API call #1386

Merged
merged 2 commits into from
Feb 21, 2018
Merged

Conversation

alexef
Copy link
Contributor

@alexef alexef commented Feb 18, 2018

@@ -42,4 +42,6 @@
31: 'DeleteAcls',
32: 'DescribeConfigs',
33: 'AlterConfigs',
36: 'SaslAuthenticate',
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I saw it was missing, but anyway where is API_KEYS used?

Copy link
Collaborator

Choose a reason for hiding this comment

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

It's not used atm.

API_KEY = 37
API_VERSION = 0
SCHEMA = Schema(
('topic_error_codes', Array(
Copy link
Collaborator

Choose a reason for hiding this comment

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

Seems like you missed throttle_time_ms field. Lets set the name to topic_errors to be exact to docs also. See https://kafka.apache.org/protocol#The_Messages_CreatePartitions.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ouch, my bad, pushed a fix.

Copy link

Choose a reason for hiding this comment

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

Is Line 335 in kafka/admin/client.py a residual mistake from this change?

Copy link
Collaborator

@tvoinarovskyi tvoinarovskyi left a comment

Choose a reason for hiding this comment

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

Minor fix and looks good. GJ!

Copy link
Collaborator

@tvoinarovskyi tvoinarovskyi left a comment

Choose a reason for hiding this comment

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

Looks good!

@alexef
Copy link
Contributor Author

alexef commented Feb 20, 2018

@tvoinarovskyi thank you for the review! Is there something else I need to do to get this merged, or just wait for more approval?

@jeffwidman jeffwidman merged commit f5a0e40 into dpkp:master Feb 21, 2018
@jeffwidman
Copy link
Collaborator

Looked good to me, so I merged it. Thanks!

@alexef alexef deleted the admin_protocol branch December 16, 2018 10:20
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.

4 participants