[ 
https://issues.apache.org/jira/browse/KAFKA-7299?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16581848#comment-16581848
 ] 

ASF GitHub Bot commented on KAFKA-7299:
---------------------------------------

huxihx opened a new pull request #5515: KAFKA-7299: Batch LeaderAndIsr requests 
for AutoLeaderRebalance
URL: https://github.com/apache/kafka/pull/5515
 
 
   Currently, in KafkaController.checkAndTriggerAutoLeaderRebalance(), we call 
onPreferredReplicaElection() one partition at a time. This means that the 
controller will be sending LeaderAndIsrRequest one partition at a time. It 
would be more efficient to call onPreferredReplicaElection() for a batch of 
partitions to reduce the number of LeaderAndIsrRequests.
   
   *More detailed description of your change,
   if necessary. The PR title and PR message become
   the squashed commit message, so use a separate
   comment to ping reviewers.*
   
   *Summary of testing strategy (including rationale)
   for the feature or bug fix. Unit and/or integration
   tests are expected for any behaviour change and
   system tests should be considered for larger changes.*
   
   ### Committer Checklist (excluded from commit message)
   - [ ] Verify design and implementation 
   - [ ] Verify test coverage and CI build status
   - [ ] Verify documentation (including upgrade notes)
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> batch LeaderAndIsr requests during auto preferred leader election
> -----------------------------------------------------------------
>
>                 Key: KAFKA-7299
>                 URL: https://issues.apache.org/jira/browse/KAFKA-7299
>             Project: Kafka
>          Issue Type: Sub-task
>          Components: core
>    Affects Versions: 2.0.0
>            Reporter: Jun Rao
>            Assignee: huxihx
>            Priority: Major
>
> Currently, in KafkaController.checkAndTriggerAutoLeaderRebalance(), we call 
> onPreferredReplicaElection() one partition at a time. This means that the 
> controller will be sending LeaderAndIsrRequest one partition at a time. It 
> would be more efficient to call onPreferredReplicaElection() for a batch of 
> partitions to reduce the number of LeaderAndIsrRequests.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to