dengziming commented on code in PR #12106:
URL: https://github.com/apache/kafka/pull/12106#discussion_r861427340


##########
core/src/main/scala/kafka/server/ControllerApis.scala:
##########
@@ -767,7 +767,7 @@ class ControllerApis(val requestChannel: RequestChannel,
           setErrorCode(TOPIC_AUTHORIZATION_FAILED.code))
       }
     }
-    controller.createPartitions(context, topics).thenApply { results =>
+    controller.createPartitions(context, topics, 
request.validateOnly()).thenApply { results =>

Review Comment:
   Good catch, it seems we don't have a test case for this problem, maybe we 
can change `PlaintextAdminIntegrationTest` to support KRaft mode.



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