Details
Description
ReassignPartitionsCommand does not check whether the replication factor of a partition is the same as existing replication factor, which may result that different partitions of a topic have different number of replicas. More specifically, TopicCommand will throw exception which contains "All partitions should have the same number of replicas." as the message when the user tries to add partitions. I think this loophole also may leave Kafka in a situation from which it is difficult to recover.