Skip to content

Commit

Permalink
KAFKA-16053: Fix memory leaks due to KDC server in tests (apache#15079)…
Browse files Browse the repository at this point in the history
… (#497)

This commit closes the KDC server properly in `CustomQuotaCallbackTest` and `AclAuthorizerWithZkSaslTest`.

Reviewers: Justine Olshan <jolshan@confluent.io>

Co-authored-by: Divij Vaidya <diviv@amazon.com>
  • Loading branch information
anurag-harness and divijvaidya committed Feb 9, 2024
1 parent 617fb62 commit 04644ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Expand Up @@ -78,6 +78,7 @@ class CustomQuotaCallbackTest extends IntegrationTestHarness with SaslSetup {
adminClients.foreach(_.close())
GroupedUserQuotaCallback.tearDown()
super.tearDown()
closeSasl()
}

override def configureSecurityBeforeServersStart(testInfo: TestInfo): Unit = {
Expand Down
Expand Up @@ -91,6 +91,7 @@ class AclAuthorizerWithZkSaslTest extends QuorumTestHarness with SaslSetup {
aclAuthorizer.close()
aclAuthorizer2.close()
super.tearDown()
closeSasl()
}

@Test
Expand Down

0 comments on commit 04644ae

Please sign in to comment.