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

   The state updater waits on a condition variable if no tasks exist that need 
to be updated. The condition variable is wrapped by a loop to account for 
spurious wake-ups. The check whether updating tasks exist is done in the 
condition of the loop. Actually, the state updater thread can change whether 
updating tasks exists, but since the state updater thread is waiting for the 
condition variable the check for the existence of updating tasks will always 
return the same value as long as the state updater thread is waiting. Thus, the 
check only need to be done once before entering the loop.
   
   This PR moves check before the loop making also the usage of mocks more 
robust since the processing becomes more deterministic.
   
   *More detailed description of your change,
   if necessary. The PR title and PR message become
   the squashed commit message, so use a separate
   comment to ping reviewers.*
   
   *Summary of testing strategy (including rationale)
   for the feature or bug fix. Unit and/or integration
   tests are expected for any behaviour change and
   system tests should be considered for larger changes.*
   
   ### 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: jira-unsubscr...@kafka.apache.org

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

Reply via email to