I created a topic with 3 partitions
Topic:fixtures PartitionCount:3 ReplicationFactor:1 Configs:
Topic: fixtures Partition: 0 Leader: 0 Replicas: 0 Isr: 0
Topic: fixtures Partition: 1 Leader: 0 Replicas: 0 Isr: 0
Topic: fixtures Partition: 2 Leader: 0 Replicas: 0 Isr: 0
I use a Java Producer to write into the topic synchronously
producer.send(new ProducerRecord<>(KafkaProperties.TOPIC_FIXTURES, key, value)).get();
I have a consumer in Java which subscribes and reads from it
Consumer<String, String> kafkaConsumer = new KafkaConsumer<>(configs);
kafkaConsumer.subscribe(Collections.singletonList(KafkaProperties.TOPIC_FIXTURES));
My keys are always a fixed set of 3 different strings (k1,k2,k3). But my messages are always going to either partition 1 or partition 2 -- k1 and k2 goes to partition 1 and k3 goes to partition 2.
Why is partition 0 unused?