Skip to content

Commit

Permalink
improve the comment for test
Browse files Browse the repository at this point in the history
  • Loading branch information
poorbarcode committed Aug 21, 2024
1 parent 436d0cd commit b6283f9
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,7 @@ public void testConcurrentlyOfPublishAndSwitchLedger() throws Exception {
ManagedLedgerConfig config = persistentTopic.getManagedLedger().getConfig();
config.setMaxEntriesPerLedger(2);
config.setMinimumRolloverTime(0, TimeUnit.MILLISECONDS);
// Inject a delay for the initialization of ML, to make the consumer to register twice.
// Consumer register twice: the first will be timeout, and try again.
// Inject a delay for switching ledgers, so publishing requests will be push in to the pending queue.
AtomicInteger delayTimes = new AtomicInteger();
mockZooKeeper.delay(10, (op, s) -> {
if (op.toString().equals("SET") && s.contains(TopicName.get(topicName).getPersistenceNamingEncoding())) {
Expand Down

0 comments on commit b6283f9

Please sign in to comment.