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 2022/11/29 18:22:36 UTC

[GitHub] [kafka] hachikuji commented on a diff in pull request #12885: KAFKA-14358; Disallow creation of cluster metadata partition

hachikuji commented on code in PR #12885:
URL: https://github.com/apache/kafka/pull/12885#discussion_r1035115000


##########
core/src/main/scala/kafka/server/ControllerApis.scala:
##########
@@ -400,7 +407,8 @@ class ControllerApis(val requestChannel: RequestChannel,
         if (!authorizedTopicNames.contains(name)) {
           response.topics().add(new CreatableTopicResult().
             setName(name).
-            setErrorCode(TOPIC_AUTHORIZATION_FAILED.code))
+            setErrorCode(TOPIC_AUTHORIZATION_FAILED.code).
+            setErrorMessage("Authorization failed."))

Review Comment:
   Why add this? 



-- 
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-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org