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

Handle missing partitions and better logging #9089

Merged
merged 1 commit into from
Apr 5, 2021
Merged

Conversation

mgarabed
Copy link
Member

@mgarabed mgarabed commented Apr 5, 2021

What does this PR do?

The Kafka client call self._kafka_client.cluster.partitions_for_topic(topic) has the possibility to return None, which will raise an error when trying to iterate over it.

This protects against that and adds better logging in case that condition occurs.

@mgarabed mgarabed requested a review from a team as a code owner April 5, 2021 20:22
@mgarabed mgarabed merged commit d096f8e into master Apr 5, 2021
@mgarabed mgarabed deleted the mg/kafka-partitions branch April 5, 2021 20:43
@mgarabed mgarabed mentioned this pull request Apr 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants