Skip to content
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] Optimize performance for checking max topics when the topic is a system topic #23185

Conversation

poorbarcode
Copy link
Contributor

Motivation & Modifications

When loading the system topic, skip the check of checkMaxTopicsPerNamespace at the first line, it can let the system topic __change_event start faster and avoid thread switching.

Documentation

  • doc
  • doc-required
  • doc-not-needed
  • doc-complete

Matching PR in forked repository

PR in forked repository: x

@poorbarcode poorbarcode added this to the 4.0.0 milestone Aug 16, 2024
@poorbarcode poorbarcode self-assigned this Aug 16, 2024
@poorbarcode poorbarcode changed the title [improve] [broker] [improve] [broker] Optimize performance for checking max topics when the topic is a system topic [improve] [broker] Optimize performance for checking max topics when the topic is a system topic Aug 16, 2024
@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Aug 16, 2024
@codecov-commenter
Copy link

codecov-commenter commented Aug 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 74.59%. Comparing base (bbc6224) to head (00a1eef).
Report is 533 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##             master   #23185      +/-   ##
============================================
+ Coverage     73.57%   74.59%   +1.01%     
- Complexity    32624    33672    +1048     
============================================
  Files          1877     1921      +44     
  Lines        139502   144488    +4986     
  Branches      15299    15809     +510     
============================================
+ Hits         102638   107777    +5139     
+ Misses        28908    28471     -437     
- Partials       7956     8240     +284     
Flag Coverage Δ
inttests 27.89% <100.00%> (+3.30%) ⬆️
systests 24.70% <100.00%> (+0.37%) ⬆️
unittests 73.94% <100.00%> (+1.09%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
...rg/apache/pulsar/broker/service/BrokerService.java 82.27% <100.00%> (+1.49%) ⬆️

... and 513 files with indirect coverage changes

@lhotari lhotari merged commit 73433cd into apache:master Aug 17, 2024
59 of 63 checks passed
lhotari pushed a commit that referenced this pull request Aug 19, 2024
…the topic is a system topic (#23185)

(cherry picked from commit 73433cd)
lhotari pushed a commit that referenced this pull request Aug 19, 2024
…the topic is a system topic (#23185)

(cherry picked from commit 73433cd)
nikhil-ctds pushed a commit to datastax/pulsar that referenced this pull request Aug 22, 2024
…the topic is a system topic (apache#23185)

(cherry picked from commit 73433cd)
(cherry picked from commit 09bc877)
srinath-ctds pushed a commit to datastax/pulsar that referenced this pull request Aug 23, 2024
…the topic is a system topic (apache#23185)

(cherry picked from commit 73433cd)
(cherry picked from commit 09bc877)
grssam pushed a commit to grssam/pulsar that referenced this pull request Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants