Skip to content

Commit

Permalink
Fix leak in AbstractReplicatorTest
Browse files Browse the repository at this point in the history
  • Loading branch information
lhotari committed Oct 28, 2023
1 parent 6c35438 commit 9711111
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicInteger;
import lombok.Cleanup;
import org.apache.bookkeeper.mledger.Position;
import org.apache.bookkeeper.mledger.impl.PositionImpl;
import org.apache.pulsar.broker.PulsarServerException;
Expand All @@ -57,6 +58,7 @@ public void testRetryStartProducerStoppedByTopicRemove() throws Exception {
final String remoteCluster = "remoteCluster";
final String topicName = "remoteTopicName";
final String replicatorPrefix = "pulsar.repl";
@Cleanup("shutdownNow")
final DefaultEventLoop eventLoopGroup = new DefaultEventLoop();
// Mock services.
final ServiceConfiguration pulsarConfig = mock(ServiceConfiguration.class);
Expand Down

0 comments on commit 9711111

Please sign in to comment.