mattisonchao commented on code in PR #20767:
URL: https://github.com/apache/pulsar/pull/20767#discussion_r1257762384
##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/persistent/ReplicatedSubscriptionsController.java:
##########
@@ -194,8 +194,12 @@ private void
receiveSubscriptionUpdated(ReplicatedSubscriptionsUpdate update) {
// Subscription doesn't exist. We need to force the creation of
the subscription in this cluster, because
log.info("[{}][{}] Creating subscription at {}:{} after receiving
update from replicated subcription",
topic, update.getSubscriptionName(),
updatedMessageId.getLedgerId(), pos);
- topic.createSubscription(update.getSubscriptionName(),
- InitialPosition.Latest, true /* replicateSubscriptionState
*/, null);
+ topic.createSubscription(update.getSubscriptionName(),
InitialPosition.Earliest,
Review Comment:
I wonder If we can support `position` while creating the subscription in the
future.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]