Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
coderzc committed Jan 16, 2024
1 parent 45029c8 commit ee9dd6c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1008,7 +1008,8 @@ public CompletableFuture<Consumer> subscribe(final TransportCnx cnx, String subs
}

private CompletableFuture<Subscription> getDurableSubscription(String subscriptionName,
InitialPosition initialPosition, long startMessageRollbackDurationSec,
InitialPosition initialPosition,
long startMessageRollbackDurationSec,
boolean readCompacted, boolean replicated,
Map<String, String> subscriptionProperties) {
CompletableFuture<Subscription> subscriptionFuture = new CompletableFuture<>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1893,6 +1893,7 @@ public void testReadCommittedWithCompaction() throws Exception{
.topic(topic)
.subscriptionName("sub")
.subscriptionType(SubscriptionType.Exclusive)
.subscriptionInitialPosition(SubscriptionInitialPosition.Earliest)
.readCompacted(true)
.subscribe();
List<String> result = new ArrayList<>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2190,9 +2190,11 @@ public void testCompactionWithTTL() throws Exception {
});

@Cleanup
Consumer<String> consumer =
pulsarClient.newConsumer(Schema.STRING).topic(topicName).subscriptionName(subName).readCompacted(true)
.subscribe();
Consumer<String> consumer = pulsarClient.newConsumer(Schema.STRING).topic(topicName)
.subscriptionName("sub-2")
.readCompacted(true)
.subscriptionInitialPosition(SubscriptionInitialPosition.Earliest)
.subscribe();

List<String> result = new ArrayList<>();
while (true) {
Expand Down

0 comments on commit ee9dd6c

Please sign in to comment.