MahsaSeifikar commented on code in PR #19742: URL: https://github.com/apache/kafka/pull/19742#discussion_r2110041979
########## core/src/main/scala/kafka/server/ClientQuotaManager.scala: ########## @@ -155,6 +155,7 @@ class ClientQuotaManager(private val config: ClientQuotaManagerConfig, case None => new DefaultQuotaCallback } private val clientQuotaType = QuotaType.toClientQuotaType(quotaType) + private val activeQuotaEntities = new ConcurrentHashMap[KafkaQuotaEntity, Boolean]() @volatile private var quotaTypesEnabled = clientQuotaCallbackPlugin match { Review Comment: I think using an EnumSet doesn't make sense in this case because we have both types and their associated values. It's a good alternative when we only need to store QuotaTypes (e.g., user, client, userClient) -- 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