You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by "zjxxzjwang (via GitHub)" <gi...@apache.org> on 2026/01/21 13:24:48 UTC
[PR] [improve][broker]Reduce unnecessary creation of retry topic and DLQ topic [pulsar]
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: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [improve][client]Reduce unnecessary getPartitionedTopicMetadata requests when using retry and DLQ topics. [pulsar]
Posted by "zjxxzjwang (via GitHub)" <gi...@apache.org>.
zjxxzjwang commented on PR #25172:
URL: https://github.com/apache/pulsar/pull/25172#issuecomment-3784676782
> Plz add unit tests to cover this logic.
I have added unit testing
--
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: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [improve][broker]Reduce unnecessary creation of retry topic and DLQ topic [pulsar]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #25172:
URL: https://github.com/apache/pulsar/pull/25172#issuecomment-3778127216
@zjxxzjwang Please add the following content to your PR description and select a checkbox:
```
- [ ] `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: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [improve][client]Reduce unnecessary creation of retry topic and DLQ topic [pulsar]
Posted by "hanmz (via GitHub)" <gi...@apache.org>.
hanmz commented on PR #25172:
URL: https://github.com/apache/pulsar/pull/25172#issuecomment-3782313286
Plz add unit tests to cover this logic.
--
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: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [improve][client]Reduce unnecessary getPartitionedTopicMetadata requests when using retry and DLQ topics. [pulsar]
Posted by "Jason918 (via GitHub)" <gi...@apache.org>.
Jason918 merged PR #25172:
URL: https://github.com/apache/pulsar/pull/25172
--
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: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org