Skip to content

Commit

Permalink
[fix][test] Fix flaky UnloadSubscriptionTest.testMultiConsumer (apach…
Browse files Browse the repository at this point in the history
…e#23243)

(cherry picked from commit a678e97)
(cherry picked from commit fe5407d)
  • Loading branch information
hanmz authored and srinath-ctds committed Sep 12, 2024
1 parent 8a3bba7 commit 01c5605
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ protected void doInitConf() throws Exception {
super.doInitConf();
conf.setSystemTopicEnabled(false);
conf.setTransactionCoordinatorEnabled(false);
conf.setAcknowledgmentAtBatchIndexLevelEnabled(true);
}

@AfterClass(alwaysRun = true)
Expand Down Expand Up @@ -242,6 +243,7 @@ private Consumer<String> createConsumer(String topicName, String subName, Subscr
.subscriptionName(subName)
.subscriptionType(subType)
.isAckReceiptEnabled(true)
.enableBatchIndexAcknowledgment(true)
.subscribe();
return consumer;
}
Expand Down

0 comments on commit 01c5605

Please sign in to comment.