-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[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
[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
Conversation
4962c07
to
8fd9f7c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
@poorbarcode there is a test keeps failing, could you please take a check |
Sure, thanks |
Codecov ReportAttention: 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.
|
… 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)
… 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)
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
TopicEventsListener
Topic Load
event when callingpulsar-admin topics stats <topic name>
even if the topic was not created.Topic Load
event when callingpulsar-admin topics stats <topic name>
if the topic was not created.Documentation
doc
doc-required
doc-not-needed
doc-complete
Matching PR in forked repository
PR in forked repository: x