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

Fix default partitioner for kayrock #379

Merged
merged 1 commit into from
Nov 4, 2019

Conversation

dantswain
Copy link
Collaborator

As reported on slack by @bartek - the default partitioner (really any
partitioner) needs to know how many partitions a topic has. In the
Kayrock-based client, we don't automatically fetch metadata for every
topic. So it becomes a problem if anyone tries to produce to a topic
that the client doesn't know about yet.

This should fix that by ensuring we have topic metadata for any topic
to which we produce.

As reported on slack by @bartek - the default partitioner (really any
partitioner) needs to know how many partitions a topic has.  In the
Kayrock-based client, we don't automatically fetch metadata for every
topic.  So it becomes a problem if anyone tries to produce to a topic
that the client doesn't know about yet.

This should fix that by ensuring we have topic metadata for any topic
to which we produce.
Copy link
Member

@joshuawscott joshuawscott left a comment

Choose a reason for hiding this comment

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

:shipit:

@dantswain dantswain merged commit c7ba6a5 into master Nov 4, 2019
@dantswain dantswain deleted the kayrock_producer_with_partitioner branch November 4, 2019 13:46
@joshuawscott joshuawscott mentioned this pull request Jul 14, 2020
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.

2 participants