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

Messages are not partitioned correctly and always ends in partition 0 #5

Open
romain-gilles-ultra opened this issue Apr 30, 2021 · 0 comments

Comments

@romain-gilles-ultra
Copy link
Contributor

When you configure dkafka to push message from dfuse with a key mapping all the messages are pushed in the partition 0.

This issue was reported in the past at: confluentinc/confluent-kafka-go#474
If you don't provide the Partition property when you define the TopicPartition of a message then the message use the partition 0.

Solution

Specify Partition: kafka.PartitionAny to let kafka use the key to select the partition.

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

No branches or pull requests

1 participant