Lanayx opened a new issue #9327:
URL: https://github.com/apache/pulsar/issues/9327


   **Describe the bug**
   
   Currently topics name only depend on subscription name and not on the topic 
name (so there is a clash when different consumers work with different topics 
and same subscription name)
   
[Link](https://github.com/apache/pulsar/blob/branch-2.7/pulsar-client/src/main/java/org/apache/pulsar/client/impl/ConsumerBuilderImpl.java#L123-L124)
   
   There is a [duplicate code 
block](https://github.com/apache/pulsar/blob/branch-2.7/pulsar-client/src/main/java/org/apache/pulsar/client/impl/ConsumerImpl.java#L325-L344)
 where topic names are generated correctly, but those are not in use since 
policy is generated at builder time.
   
   **To Reproduce**
   Steps to reproduce the behavior:
   1. Setup 2 consumers that listen to different topics, but the same 
subscription name
   2. Enable retry for both
   3. See that retry and dead letter generated topics are the same, so there is 
a messages clash
   
   **Expected behavior**
   Generated topics should be based both on topic name and subscription name 
(like 
[here](https://github.com/apache/pulsar/blob/branch-2.7/pulsar-client/src/main/java/org/apache/pulsar/client/impl/ConsumerImpl.java#L335))


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


Reply via email to