Skip to content

Commit

Permalink
Fix possible leak in BatchMessageTest if test is retried
Browse files Browse the repository at this point in the history
  • Loading branch information
lhotari committed Nov 8, 2023
1 parent 4b6fc80 commit 0e7ed96
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -768,6 +768,7 @@ public void testConcurrentBatchMessageAck(BatcherBuilder builder) throws Excepti
final Consumer<byte[]> myConsumer = pulsarClient.newConsumer().topic(topicName)
.subscriptionName(subscriptionName).subscriptionType(SubscriptionType.Shared).subscribe();
// assertEquals(dispatcher.getTotalUnackedMessages(), 1);
@Cleanup("shutdownNow")
ExecutorService executor = Executors.newFixedThreadPool(10);

final CountDownLatch latch = new CountDownLatch(numMsgs);
Expand Down

0 comments on commit 0e7ed96

Please sign in to comment.