Skip to content

Commit

Permalink
[fix][test] Fix flaky UnloadSubscriptionTest.testMultiConsumer (apach…
Browse files Browse the repository at this point in the history
  • Loading branch information
hanmz committed Sep 2, 2024
1 parent aee2ee5 commit a678e97
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 a678e97

Please sign in to comment.