You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2019/04/26 03:30:17 UTC

[GitHub] [pulsar] lovelle commented on a change in pull request #4139: Detect duplicate consumers by consumer name

lovelle commented on a change in pull request #4139: Detect duplicate consumers by consumer name
URL: https://github.com/apache/pulsar/pull/4139#discussion_r278798825
 
 

 ##########
 File path: pulsar-client/src/main/java/org/apache/pulsar/client/impl/PulsarClientImpl.java
 ##########
 @@ -682,7 +682,7 @@ public void reloadLookUp() throws PulsarClientException {
             Optional<ConsumerBase<?>> subscriber = consumers.keySet().stream()
                     .filter(c -> c.getSubType().equals(PulsarApi.CommandSubscribe.SubType.Shared))
                     .filter(c -> conf.getTopicNames().contains(c.getTopic()))
-                    .filter(c -> c.getSubscription().equals(conf.getSubscriptionName()))
+                    .filter(c -> c.getConsumerName().equals(conf.getConsumerName()))
 
 Review comment:
   Sorry, I missed this in the hurry.
   Now is fixed proper test to assert this. :+1: 

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services