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

   Main Issue:  https://github.com/apache/pulsar-client-go/issues/1297
   Relative #21890 
   
   ### Motivation
   When multiple consumers with same name are using dlq policies at the same 
time, prompt will throw below exceptions:
   `
   ERRO[0069] Failed to create DLQ producer  
dlq-topic="persistent://<tenant>/<namespace>/<topic>-<subscription>-DLQ" 
error="server error: ProducerBusy: 
org.apache.pulsar.broker.service.BrokerServiceException$NamingException: 
Producer with name '-<subscription>-<consumerName>-DLQ' is already connected to 
topic"
   `
   
   ### Modifications
   
   I think maybe we need to add a random suffix in dlq producer name like: 
`opt.Name = fmt.Sprintf("%s-%s-%s-%s-DLQ", r.topicName, r.subscriptionName, 
r.consumerName, generateRandomName()) `
   
   ### Verifying this change
   
   - [x] Make sure that the change passes the CI checks.
   
   This change is already covered by existing tests, such as 
`DeadLetterTopicTest.testDeadLetterTopicWithProducerName`
   
   ### Does this pull request potentially affect one of the following parts:
   
   <!-- DO NOT REMOVE THIS SECTION. CHECK THE PROPER BOX ONLY. -->
   
   *If the box was checked, please highlight the changes*
   
   - [ ] Dependencies (add or upgrade a dependency)
   - [ ] The public API
   - [ ] The schema
   - [x] The default values of configurations
   - [ ] The threading model
   - [ ] The binary protocol
   - [ ] The REST endpoints
   - [ ] The admin CLI options
   - [ ] The metrics
   - [ ] Anything that affects deployment
   
   
   ### Documentation
   
   <!-- DO NOT REMOVE THIS SECTION. CHECK THE PROPER BOX ONLY. -->
   
   - [ ] `doc` <!-- Your PR contains doc changes. -->
   - [x] `doc-required` <!-- Your PR changes impact docs and you will update 
later -->
   - [ ] `doc-not-needed` <!-- Your PR changes do not impact docs -->
   - [ ] `doc-complete` <!-- Docs have been already added -->
   
   After change golang, java and c++ sdks, we could update document like this 
pr https://github.com/apache/pulsar-site/pull/772/files.
   
   ### Matching PR in forked repository
   
   PR in forked repository: <!-- ENTER URL HERE -->
   
   <!--
   After opening this PR, the build in apache/pulsar will fail and instructions 
will
   be provided for opening a PR in the PR author's forked repository.
   
   apache/pulsar pull requests should be first tested in your own fork since 
the 
   apache/pulsar CI based on GitHub Actions has constrained resources and quota.
   GitHub Actions provides separate quota for pull requests that are executed 
in 
   a forked repository.
   
   The tests will be run in the forked repository until all PR review comments 
have
   been handled, the tests pass and the PR is approved by a reviewer.
   -->
   


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