hachikuji commented on code in PR #12109: URL: https://github.com/apache/kafka/pull/12109#discussion_r875349048
########## core/src/main/scala/kafka/server/ZkAdminManager.scala: ########## @@ -158,7 +158,7 @@ class ZkAdminManager(val config: KafkaConfig, val nullConfigs = topic.configs.asScala.filter(_.value == null).map(_.name) if (nullConfigs.nonEmpty) - throw new InvalidRequestException(s"Null value not supported for topic configs : ${nullConfigs.mkString(",")}") + throw new ConfigException(s"Null value not supported for topic configs: ${nullConfigs.mkString(",")}") Review Comment: I was going to suggest using InvalidConfigurationException instead, but we might need to be a little careful. I am not sure if INVALID_CONFIG is already an expected error for `CreateTopics`. -- 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