Skip to content

Fix test failures: TypeError, IncompatibleBrokerVersion, and warnings #2644

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ljluestc
Copy link

Summary

Fixes infinite loop in KafkaAdminClient._send_request_to_node when a broker exits the cluster (#2193).

  • Adds timeout and broker presence check to _send_request_to_node.
  • Implements retry logic in _get_cluster_metadata for BrokerNotAvailableError.
  • Fixes IndentationError in test_producer_acks.py by correcting function indentation.
  • Adds test for unavailable broker handling in test_admin_client.py.

Testing

  • Verified with modified test_issue_2193.py script, catching BrokerNotAvailableError.
  • Added test_send_request_to_node_unavailable_broker in test_admin_client.py.
  • Ran pytest test locally with Confluent Kafka 7.x (Docker).
  • Confirmed CI compatibility with Kafka 0.10.2+.

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.

1 participant