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

   
   
   ### Motivation
   
   <!-- Explain here the context, and why you're making that change. What is 
the problem you're trying to solve. -->
   Reduce unnecessary creation of retry topic and DLQ topic.
   
   The following scenarios:
   1. When retryLetterTopic is not set but deadLetterTopic is set
   2. When retryLetterTopic is set but deadLetterTopic is not set
   
   These scenarios will trigger the getPartitionedTopicMetadata operation for 
both the retry topic and DLQ topic, resulting in the loading of the default 
retry topic and default DLQ topic. This leads to resource wastage.
   
   
   ### Modifications
   
   Perform verification separately. If retryLetterTopic or deadLetterTopic is 
set, do not proceed to getPartitionedTopicMetadata.
   
   
   ### 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 -->
   - [ ] `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