[fix][broker] Skip loading broker interceptor when disableBrokerInterceptors is true#20422
Merged
Merged
Conversation
Member
Author
|
/pulsarbot rerun-failure-checks |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #20422 +/- ##
=============================================
- Coverage 72.90% 36.83% -36.08%
+ Complexity 31864 12053 -19811
=============================================
Files 1864 1688 -176
Lines 138416 128884 -9532
Branches 15188 14022 -1166
=============================================
- Hits 100919 47477 -53442
- Misses 29477 75152 +45675
+ Partials 8020 6255 -1765
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Member
Author
Without this patch, the broker always inits the broker interceptor and calls it.
The broker works fine.
Perhaps I should add a test to check this call. |
…ceptors is true Signed-off-by: Zixuan Liu <nodeces@gmail.com>
7051026 to
d4eaa21
Compare
tisonkun
approved these changes
May 29, 2023
poorbarcode
approved these changes
May 30, 2023
Technoboy-
pushed a commit
that referenced
this pull request
May 30, 2023
…ceptors is true (#20422) Signed-off-by: Zixuan Liu <nodeces@gmail.com>
Technoboy-
added a commit
to Technoboy-/pulsar
that referenced
this pull request
Jul 4, 2023
…kerInterceptors is true (apache#20422)" This reverts commit 639c460.
This was referenced Jul 4, 2023
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
disableBrokerInterceptorsistrue, we should skip loading the broker interceptor to avoid initializing it.This configuration is
trueby default, whether enabled or not, it will not affect the broker feature.By the way, the web service and broker service should keep the same behavior:
pulsar/pulsar-broker/src/main/java/org/apache/pulsar/broker/web/WebService.java
Lines 216 to 224 in b7f7e04
Modifications
disableBrokerInterceptorsvalue, and then load the broker interceptordisableBrokerInterceptorsdescriptionDocumentation
docdoc-requireddoc-not-neededdoc-complete