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

   This PR has two parts:
   
   1. Redefining the TopicDelta fields to better distinguish when a leader is 
elected (leader epoch bump) vs when a leader has isr/replica changes (partition 
epoch bump). There are some cases where we bump the partition epoch but not the 
leader epoch. We do not need to do operations that only care about the leader 
epoch bump. (ie -- onElect callbacks)
   2. Even in the case of leader epoch bumps, we may be electing the same 
leader. In that case, we don't need to do some operations (load state from disk 
that is already loaded). The GroupCoordinator already handles this case, but 
the transaction coordinator does not. I've updated this code to not read from 
disk, but to take the existing metadata and update the leader epoch, as well as 
send markers with the new epoch.
   
   ### 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 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