weishuisheng commented on a change in pull request #5701: [issues 5698]Handle 
replicator producer as generated name producer
URL: https://github.com/apache/pulsar/pull/5701#discussion_r348255730
 
 

 ##########
 File path: 
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/AbstractTopic.java
 ##########
 @@ -316,6 +316,11 @@ private void tryOverwriteOldProducer(Producer 
oldProducer, Producer newProducer)
         }
     }
 
+    private boolean isUserProvidedProducerName(Producer producer){
+        //considered replicator producer as generated name producer
+        return   producer.isUserProvidedProducerName() && 
!producer.getProducerName().startsWith(replicatorPrefix);
 
 Review comment:
   OK

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to