confluent-kafka-python
confluent-kafka-python copied to clipboard
Admin client impl fixes
A handful of minor fixes to cimpl. Probably nothing that will impact real-life use-cases, since these are all buried inside _AdminClientImpl, but they were bothering me.
- Swaps
"topic_names"and"future"inkwsarray inAdmin_describe_topics()
If a user tried to pass topic_names or future into _AdminClientImpl.describe_topics() as keyword arguments, they would end up swapped, which would lead to confusing errors.
- Raises
TypeErrorinAdmin_list_consumer_group_offset()ifrequestis not a list - Raises
TypeErrorinAdmin_alter_consumer_group_offsets()ifrequestis not a list
In both of these cases, the library would raise ValueError if request was a list with anything other than 1 item... but if request wasn't a list, it would result in an internal error when it tried to access its first item.
- Allows elements of
plistinpy_to_c_parts()to be instances of a subtype ofTopicPartition
If a user passed a list of instances of a subtype of TopicPartition, the library would raise a TypeError, even if the instances were otherwise valid.
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
Siobhán Sterrett seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
Siobhán Sterrett seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.
I think this might touch some code I changed here https://github.com/confluentinc/confluent-kafka-python/pull/1591
But this project is not accepting PRs. It's annoying.