chia7712 commented on code in PR #15830:
URL: https://github.com/apache/kafka/pull/15830#discussion_r1632119543


##########
core/src/test/scala/unit/kafka/admin/AclCommandTest.scala:
##########
@@ -325,11 +349,15 @@ class AclCommandTest extends QuorumTestHarness with 
Logging {
 
   private def withAuthorizer()(f: Authorizer => Unit): Unit = {
     val kafkaConfig = KafkaConfig.fromProps(brokerProps, doLog = false)
-    val authZ = new AclAuthorizer
+    val auth = if (isKRaftTest()) {
+      servers.last.authorizer.get
+    } else {
+      new AclAuthorizer

Review Comment:
   Maybe we can use the authorizer of broker instead of creating new one?



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