C0urante commented on PR #12543:
URL: https://github.com/apache/kafka/pull/12543#issuecomment-1275066936

   Thanks @jolshan. I believe it's valid to perform preferred leader election 
for topics even if they're currently undergoing reassignment, for reasons 
[discussed in an earlier 
PR](https://github.com/apache/kafka/pull/9302#discussion_r491094781) for this 
ticket by @hachikuji:
   > During a reassignment, the adding replicas are always listed first which 
means the preferred leader is among the target replicas. My take is that we 
want to move the leadership onto the new preferred leader as soon as possible 
since the whole point of the reassignment is to take load off the removing 
replicas.
   
   I've double-checked the code base and this still appears to be the case; let 
me know if I'm missing something, though.
   
   Definitely agree RE commenting the test code; @songnon if you have time 
would you mind adding some details? Explanation of why we're shutting down and 
restarting which brokers when (e.g., to create a stuck reassignment, or to 
create a pending preferred leader election) should be plenty.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to