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

   In `kafka.server.ClientQuotaManager` class, `quotaTypesEnabled` is not 
updated when a quota is removed via `removeQuota` method in 
`DefaultQuotaCallback` class. This field is set when quotas are added in 
`updateQuota` but it's never changed or cleared. This can lead to incorrect 
behaviour in `quotasEnabled` method. So in case all the quotas have been 
removed dynamically, the system may incorrectly assume the quotas are active, 
which leads to unnecessary metric creation or updates until the broker is 
restarted.  
   
   


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