Reputation: 10469
Im moving hundreds of topics from one broker to another. The process is
kafka-topics.sh
to generate existing partition listkafka-reassign-partitions.sh
to generate current list of partitions / brokers / etckafka-reassign-partitions.sh (broker list) --execute
to add new brokerThis has worked great for hundreds and hundreds of topics.. except for one sticky one. This holdout is refusing to sync up with the new broker (missing from ISR list) even though it's included in list of replicas
Output from kafka-topics.sh
(trying to replace broker 7 with broker 4):
Topic: shard_3 Partition: 7 Leader: 3 Replicas: 3,4,7 Isr: 7,3
I've run (4) above several times in hopes of getting this to complete but it doesn't seem to want to. I've waited overnight in case it's just really slow.
Suggestions on how to unstick this one?
Upvotes: 2
Views: 6019
Reputation: 10469
Turns out the lead broker was upset about something and the partition list wasn't being kept up to date.
Solution:
bin/zkCli.sh -server <kafka broker in cluster>
get /controller
Upvotes: 3