mmatloka opened a new pull request, #21134:
URL: https://github.com/apache/kafka/pull/21134

   This is attempt of backport https://github.com/apache/kafka/pull/19590 
specific for Kafka 3.9. Copying description from that PR:
   
   """
   The current ElectionWasClean checks if the new leader is in the previous
   ISR. However, there is a corner case in the partition reassignment. The
   partition reassignment can change the partition replicas. If the new
   preferred leader (the first one in the new replicas) is the last one to
   join ISR, this preferred leader will be elected in the same partition
   change.
   
   For example: In the previous state, the partition is Leader: 0,
   Replicas (2,1,0), ISR (1,0), Adding(2), removing(0). Then replica 2
   joins the ISR. The new partition would be like: Leader: 2, Replicas
   (2,1), ISR(1,2). The new leader 2 is not in the previous ISR (1,0) but
   it is still a clean election.
   """
   
   The original fix depends on ELR, however, AFAIK ELR's are valid for Kafka 
4.0 and 4.1, not for 3.9. I prepared a simpler fix for 3.9 (we have encountered 
such problem under 3.9, and Confluent confirmed it is an issue).
   
   Note: this is my first Apache contribution, I signed the ICLA, I read the 
contributing guidelines, sorry if I did something incorrectly :) 
   Let me also mention author of the original fix for 4.x - @CalvinConfluent 
   
   Thank you!


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to