I have a very basic topic, with a retention period of 1 minute. I created it with:
kafka-topics --zookeeper $zhost --topic $name --create --partitions $partitions --replication-factor 1 --config retention.ms=60000
So my topic looks like this:
Topic: topic_quick PartitionCount: 1 ReplicationFactor: 1 Configs: retention.ms=60000
Topic: topic_quick Partition: 0 Leader: 0 Replicas: 0 Isr: 0 Offline:
My producer then send a message, and after 1 minute I try to consume this message.
Expected behaviour:
- After 1 minute my consumer shouldn't receive the message I sent 1 minute ago because of the retention period.
Current behaviour:
- The consumer consumes the message after the retention period (1 minute)
How is this possible?, it seems that the retention period is not having any effect.