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

   # Summary
   
   This PR changes the offset commit fencing logic, as a follow-up to
   https://github.com/apache/kafka/pull/21558 change on assignment
   structure to include epoch information.
   
   It introduces per-partition assignment epochs to relax the strict member
   epoch validation for consumer group offset commits. When receiving an
   offset commit request that includes the client-side member epoch and a
   member ID, we previously require checking
   ```
   clientEpoch == brokerEpoch
   ```
   for a valid offset commit, which could lead to false fencing.
   
   We now allow a relaxed offset commit check using an assignment epoch for
   each assigned partition and each member,
   
   ```
   assignmentEpoch <= clientEpoch <= brokerEpoch
   ```
   This prevents false rejections of legitimate offset commits when a
   member's epoch is bumped but the client hasn't received the update yet.
   
   Reviewers: Sean Quah <[email protected]>, Lucas Brutschy
    <[email protected]>
   


-- 
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