The reassigned replicas are already in the ISR when selectLeader is called.
The reassigned replicas are already in the ISR when selectLeader is called.
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 and isr, and the set of replicas to receive the LeaderAndIsrRequest.
New leader = a live in-sync reassigned replica New isr = current isr Replicas to receive LeaderAndIsr request = reassigned replicas