d8tltanc commented on a change in pull request #9485: URL: https://github.com/apache/kafka/pull/9485#discussion_r540705023
########## File path: core/src/test/scala/unit/kafka/security/authorizer/AclAuthorizerTest.scala ########## @@ -100,8 +106,15 @@ class AclAuthorizerTest extends ZooKeeperTestHarness { @After override def tearDown(): Unit = { - aclAuthorizer.close() - aclAuthorizer2.close() + val authorizers = Seq(aclAuthorizer, aclAuthorizer2) + authorizers.foreach(a => { + a.acls(AclBindingFilter.ANY).forEach(bd => { + removeAcls(aclAuthorizer, Set(bd.entry), bd.pattern()) Review comment: Otherwise "deny all" will remain in ZK during the whole test process since ZK won't be restarted or re-instantiated. ---------------------------------------------------------------- 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: us...@infra.apache.org