confluentinc / confluent-kafka-python

Confluent's Kafka Python Client
http://docs.confluent.io/current/clients/confluent-kafka-python
Other
135 stars 898 forks source link

Admin client impl fixes #1823

Open siobhan-sterrett opened 2 months ago

siobhan-sterrett commented 2 months ago

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.

  1. Swaps "topic_names" and "future" in kws array in Admin_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.

  1. Raises TypeError in Admin_list_consumer_group_offset() if request is not a list
  2. Raises TypeError in Admin_alter_consumer_group_offsets() if request is 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.

  1. Allows elements of plist in py_to_c_parts() to be instances of a subtype of TopicPartition

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.

cla-assistant[bot] commented 2 months ago

CLA assistant check
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.

cla-assistant[bot] commented 2 months ago

CLA assistant check
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.

joaoe commented 1 month ago

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.