Skip to content


LeaderAndIsrRequest is a controller request with LeaderAndIsr API key and the following properties:

  • Version
  • Controller ID ( of the controller broker)
  • Controller Epoch
  • Broker Epoch
  • PartitionStates by TopicPartition (Map<TopicPartition, PartitionState>)
  • Topic IDs
  • Live leaders

LeaderAndIsrRequest is created (using LeaderAndIsrRequest.Builder) when:


LeaderAndIsrRequest comes with a concrete AbstractRequest.Builder factory object that can build a LeaderAndIsrRequest.

LeaderAndIsrRequest.Builder is used when: