From 7f48960cde69593f4e9d0bb41a1d015d44313939 Mon Sep 17 00:00:00 2001 From: Lari Hotari Date: Tue, 7 Nov 2023 16:00:16 +0200 Subject: [PATCH] Fix leak in PulsarRegistrationClientTest --- .../pulsar/metadata/bookkeeper/PulsarRegistrationClientTest.java | 1 + 1 file changed, 1 insertion(+) diff --git a/pulsar-metadata/src/test/java/org/apache/pulsar/metadata/bookkeeper/PulsarRegistrationClientTest.java b/pulsar-metadata/src/test/java/org/apache/pulsar/metadata/bookkeeper/PulsarRegistrationClientTest.java index 4dcbcda3d9078..5660b3518f1aa 100644 --- a/pulsar-metadata/src/test/java/org/apache/pulsar/metadata/bookkeeper/PulsarRegistrationClientTest.java +++ b/pulsar-metadata/src/test/java/org/apache/pulsar/metadata/bookkeeper/PulsarRegistrationClientTest.java @@ -363,6 +363,7 @@ public void testNetworkDelayWithBkZkManager() throws Throwable { final String zksConnectionString = zks.getConnectionString(); final String ledgersRoot = "/test/ledgers-" + UUID.randomUUID(); // prepare registration manager + @Cleanup ZooKeeper zk = new ZooKeeper(zksConnectionString, 5000, null); final ServerConfiguration serverConfiguration = new ServerConfiguration(); serverConfiguration.setZkLedgersRootPath(ledgersRoot);