nodece opened a new pull request, #23815:
URL: https://github.com/apache/pulsar/pull/23815

   ### Motivation
   
   Currently, the subscription replication will be changed by the 
`org.apache.pulsar.client.api.ConsumerBuilder#replicateSubscriptionState`. The 
existing subscription should use the original replication policy, this 
configuration should only affect new subscriptions.
   
   ### Modifications
   
   - When new the 
`org.apache.pulsar.broker.service.persistent.PersistentSubscription`, which 
will call the 
`org.apache.pulsar.broker.service.persistent.PersistentSubscription#setReplicated`,
 so we can remove flip the subscription state logic.
   
   ### Documentation
   
   <!-- DO NOT REMOVE THIS SECTION. CHECK THE PROPER BOX ONLY. -->
   
   - [ ] `doc` <!-- Your PR contains doc changes. -->
   - [ ] `doc-required` <!-- Your PR changes impact docs and you will update 
later -->
   - [x] `doc-not-needed` <!-- Your PR changes do not impact docs -->
   - [ ] `doc-complete` <!-- Docs have been already added -->


-- 
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]

Reply via email to