Skip to content

Commit

Permalink
KAFKA-16053: Fix memory leaks due to KDC server in tests (#15079)
Browse files Browse the repository at this point in the history
This commit closes the KDC server properly in `CustomQuotaCallbackTest` and `AclAuthorizerWithZkSaslTest`.

Reviewers: Justine Olshan <jolshan@confluent.io>
  • Loading branch information
divijvaidya committed Dec 28, 2023
1 parent d582d5a commit a56b63e
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 a56b63e

Please sign in to comment.