Description
If you alter a topic to increase the number of partitions then the configuration erases the existing configs for that topic. This can be reproduces by doing the following:
$ bin/kafka-topics.sh --create --zookeeper localhost --topic test_topic --partitions 5 --config retention.ms=3600 $ bin/kafka-topics.sh --describe --zookeeper localhost --topic test_topic > Topic:test_topic PartitionCount:5 ReplicationFactor:1 Configs:retention.ms=3600 $ bin/kafka-topics.sh --alter --zookeeper localhost --topic test_topic --partitions 10 $ bin/kafka-topics.sh --describe --zookeeper localhost --topic test_topic > Topic:test_topic PartitionCount:10 ReplicationFactor:1 Configs: