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

   This PR modifies the commit manager for improved retry logic & fixing bugs:
   - defines high level functions for each of the different types of commit: 
commitSync, commitAsync, autoCommitSync (used from consumer close), 
autoCommitAsync (on interval), autoCommitNow (before revocation).
   - moves retry logic to these caller functions, keeping a common response 
error handling that propagates errors that each caller functions retry as it 
needs. 
   
   Fixes the following issues:
   - auto-commit before revocation should retry with latest consumed offsets
   - auto-commit before revocation should only reset the timer once, when the 
rebalance completes
   - StaleMemberEpoch error (fatal) is considered retriable only when 
committing offsets before revocation, where it is retried with backoff if the 
member has a valid epoch. All other commits will fail fatally on stale epoch. 
Note that auto commit on the interval (autoCommitAsync) does not have any 
specific retry logic for the stale epoch, but will effectively retry on the 
next interval (as it does for any other fatal error) 
   - fix duplicate and noisy logs for auto-commit


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