- Notifications
You must be signed in to change notification settings - Fork 179
Provide hash function choices #405
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
Conversation
I'll take a look at it. |
Sorry, I can't have time to review it this week. |
I can review it next week. |
Adding note for Java based Kafka client uses Code changes are ok for me. |
I'm not hurry up to do this PR. |
6b67ec4
to 201d1e6
Compare I happened to find that murmur2 hash algorithm on ruby-kafka is still unreleased for now.... |
201d1e6
to ae73772
Compare I'd turned out this PR as Draft. If ruby-kafka releases partitioner keyword argument supported version, I'll turn on this PR to be Ready for review. |
This PR has been automatically marked as stale because it has been open 90 days with no activity. Remove stale label or comment or this PR will be closed in 30 days |
Hooray! ruby-kafka v1.4.0 is just released a while ago! zendesk/ruby-kafka@d5def61 |
Signed-off-by: Hiroshi Hatake <hatake@calyptia.com>
Signed-off-by: Hiroshi Hatake <hatake@calyptia.com>
aed87a2
to c5c7d03
Compare Signed-off-by: Hiroshi Hatake <hatake@calyptia.com>
Signed-off-by: Hiroshi Hatake <hatake@calyptia.com>
Signed-off-by: Hiroshi Hatake <hatake@calyptia.com>
13de99b
to 75de306
Compare Signed-off-by: Hiroshi Hatake <hatake@calyptia.com>
I added elementally testcases for partitioner hash function. |
nothing from me. |
I think that adding |
Fixes #397.
Kafka#new can handle Kafka::Partitioner classes which determine partitioner algorithms such as
crc32
andmurmur2
.In Java based kafka client, default partitioner algorithm is murmur2 not crc32.
This default algorithm glitch causes different partion assignment between Java based Kafka client and Ruby based one.