From ade9c10e934e4ff9f08ac94153d9c1641be08ac3 Mon Sep 17 00:00:00 2001 From: Lari Hotari Date: Wed, 13 Mar 2024 05:01:31 +0200 Subject: [PATCH] [fix][test] Fix thread leak in TopicPoliciesAuthZTest (#22257) --- .../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(); }