splett2 opened a new pull request #9417:
URL: https://github.com/apache/kafka/pull/9417


   ### What
   `ClientQuotaManager.updateQuota` updates `quotaCallback` before updating 
metric configs.
   `ClientQuotaManager.quota()` performs an unlocked call to `quotaLimit()`, so 
we can run into a case where `quota` returns the updated quota, but the metric 
config hasn't been updated.
   
   The fix is to acquire the read lock before attempting to read the quota. An 
alternative would be to have `verifyQuotaMetric` run in a `waitUntilTrue`. 
   
   ### 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