[improve] [broker] Do not try to open ML when the topic meta does not exist and do not expect to create a new one. #21995#22004
Merged
dao-jun merged 3 commits intoFeb 23, 2024
Conversation
4 tasks
Technoboy-
approved these changes
Feb 1, 2024
4962c07 to
8fd9f7c
Compare
Member
|
@poorbarcode there is a test keeps failing, could you please take a check |
Contributor
Author
Sure, thanks |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #22004 +/- ##
============================================
+ Coverage 73.57% 73.60% +0.02%
+ Complexity 32553 32102 -451
============================================
Files 1874 1874
Lines 139252 139351 +99
Branches 15260 15279 +19
============================================
+ Hits 102461 102574 +113
+ Misses 28866 28854 -12
+ Partials 7925 7923 -2
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
mukesh-ctds
pushed a commit
to datastax/pulsar
that referenced
this pull request
Mar 1, 2024
… exist and do not expect to create a new one. apache#21995 (apache#22004) Co-authored-by: Jiwe Guo <technoboy@apache.org> (cherry picked from commit d18831f)
mukesh-ctds
pushed a commit
to datastax/pulsar
that referenced
this pull request
Mar 6, 2024
… exist and do not expect to create a new one. apache#21995 (apache#22004) Co-authored-by: Jiwe Guo <technoboy@apache.org> (cherry picked from commit d18831f)
hanmz
pushed a commit
to hanmz/pulsar
that referenced
this pull request
Feb 12, 2025
… exist and do not expect to create a new one. apache#21995 (apache#22004) Co-authored-by: Jiwe Guo <technoboy@apache.org>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
When we call
pulsar-admin topics stats <topic name>, Pulsar will try to open a managed ledger even if the topic metadata does not exist.It costs a lot of resources when there are many requests trying to call
pulsar-admin topics stats <topic name>on a deleted partition.Modifications
Behavior changes of
TopicEventsListenerTopic Loadevent when callingpulsar-admin topics stats <topic name>even if the topic was not created.Topic Loadevent when callingpulsar-admin topics stats <topic name>if the topic was not created.Documentation
docdoc-requireddoc-not-neededdoc-completeMatching PR in forked repository
PR in forked repository: x