I have a topic with 10 partitions, and I have generate events with A,B,C,D,E,F,G,H,I
9 different keys.
I've observed messages doing this:
Partition 0- (Message1, Key E), (Message2, Key I)
Partition 1- (Message3, Key F)
.
.
Partition7-(Message4, Key A), (Message5, Key A)
Partition8- Empty
Partition9- Empty
There are 2 messages with different keys in the same partition and there are empty partitions as well.
Is the default partitioner of Kafka creating collisions?
I am producing from one stream which is balanced to two default rest producers.
This is what I was expecting:
Partition 0- (Message1, Key E)
Partition 1- (Message3, Key F)
.
.
Partition7-(Message4, Key A), (Message5, Key A)
Partition8-(Message2, Key I)
Partition9- Empty