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)
  • Loading branch information
hanmz authored and lhotari committed Sep 5, 2024
1 parent d7af82e commit fe5407d
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 fe5407d

Please sign in to comment.