I am new to kafka and when I read the Kafka doc, I realize that messages provided with the same key will be mapped to the same partition to guarantee the order. This totally makes sense. However, I'd like to know if we increase the number of topic partitions in runtime, will the new messages with the same key be hashed to the same partition (old one) as before?
If so, what if all messages are provided with keys, then none of them will be mapped to new partition? This doesn't make sense to me.
If not, then how Kafka guarantee the order to messages with the same key in order?