C0urante opened a new pull request #10396:
URL: https://github.com/apache/kafka/pull/10396


   [Jira](https://issues.apache.org/jira/browse/KAFKA-12474)
   
   If a distributed worker fails to write (or read back) a new session key 
to/from the config topic, it dies.
   
   This fix softens the blow a bit by instead restarting the herder tick loop 
anew and forcing a read to the end of the config topic until the worker is able 
to successfully read to the end.
   
   At this point, if the worker was able to successfully write a new session 
key in its first attempt, it will have read that key back from the config topic 
and will not write a new key during the next tick iteration. If it was not able 
to write that key at all, it will try again to write a new key (if it is still 
the leader).
   
   Verified with new unit tests for both cases (failure to write, failure to 
read back after write).
   
   ### 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.

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


Reply via email to