From 1cd543a1ebe7dd49f581f34d0758e8f2778c2335 Mon Sep 17 00:00:00 2001 From: Lari Hotari Date: Tue, 12 Mar 2024 23:33:30 +0200 Subject: [PATCH] [fix][test] Fix thread leak in TopicPoliciesAuthZTest --- .../apache/pulsar/broker/admin/TopicPoliciesAuthZTest.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pulsar-broker/src/test/java/org/apache/pulsar/broker/admin/TopicPoliciesAuthZTest.java b/pulsar-broker/src/test/java/org/apache/pulsar/broker/admin/TopicPoliciesAuthZTest.java index bcb8e3233a093..1f02afd418326 100644 --- a/pulsar-broker/src/test/java/org/apache/pulsar/broker/admin/TopicPoliciesAuthZTest.java +++ b/pulsar-broker/src/test/java/org/apache/pulsar/broker/admin/TopicPoliciesAuthZTest.java @@ -72,6 +72,12 @@ public void before() { @SneakyThrows @AfterClass public void after() { + if (superUserAdmin != null) { + superUserAdmin.close(); + } + if (tenantManagerAdmin != null) { + tenantManagerAdmin.close(); + } close(); }