The topic and partition whose leader needs to be elected
The current leader and isr of input partition read from zookeeper
The leader and isr request, with the newly selected leader info, to send to the brokers Also, returns the list of replicas the returned leader and isr request should be sent to This API selects a new leader for the input partition
If no replica in the assigned replicas list is alive