Kafka Log Compaction always shows two last records of same key
问题 Found these two questions : here and here, but I still don't quite understand. I still got (unexpected?) behaviour. I try to log-compact kafka topic using this configuration kafka-topics.sh --bootstrap-server localhost:9092 --create --partitions 1 --replication-factor 1 --topic test1 --config "cleanup.policy=compact" --config "delete.retention.ms=1000" --config "segment.ms=1000" --config "min.cleanable.dirty.ratio=0.01" --config "min.compaction.lag.ms=500" Then I send these messages, each has