kkonstantine opened a new pull request #8804:
URL: https://github.com/apache/kafka/pull/8804


   Until recently revocation of connectors and tasks was the result of a 
rebalance that contained a new assignment. Therefore the view of the running 
assignment was kept consistent outside the call to 
`RebalanceListener#onRevoke`. However, after KAFKA-9184 the need appeared for 
the worker to revoke tasks voluntarily and proactively without having received 
a new assignment. 
   
   This commit will allow the worker to restart tasks that have been stopped as 
a result of voluntary revocation after a rebalance reassigns these tasks to the 
work. 
   
   The fix is tested with an integration test but we should consider adding 
coordinator tests that now that the logic of the worker coordinator includes 
revocation of tasks. 
   
   ### 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