You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by GitBox <gi...@apache.org> on 2020/05/07 23:56:31 UTC

[GitHub] [kafka] bdbyrne commented on a change in pull request #8628: KAFKA-9942: Fixes ConfigCommand client quotas w/ default users.

bdbyrne commented on a change in pull request #8628:
URL: https://github.com/apache/kafka/pull/8628#discussion_r421859639



##########
File path: core/src/main/scala/kafka/admin/ConfigCommand.scala
##########
@@ -362,21 +362,22 @@ object ConfigCommand extends Config {
         ).asJavaCollection
         adminClient.incrementalAlterConfigs(Map(configResource -> alterLogLevelEntries).asJava, alterOptions).all().get(60, TimeUnit.SECONDS)
 
-      case ConfigType.User =>
-      case ConfigType.Client =>
-        val oldConfig: Map[String, java.lang.Double] = getClientQuotasConfig(adminClient, entityTypes, entityNames)
+      case ConfigType.User | ConfigType.Client =>
+        val oldConfig = getClientQuotasConfig(adminClient, entityTypes, entityNames)
 
         val invalidConfigs = configsToBeDeleted.filterNot(oldConfig.contains)
         if (invalidConfigs.nonEmpty)

Review comment:
       That's correct. I can rename the variable for the various cases if you'd prefer.




----------------------------------------------------------------
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:
users@infra.apache.org