-
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
[fix][broker] Revert "Skip loading broker interceptor when disableBrokerInterceptors is true #20422" #20710
Conversation
…kerInterceptors is true (apache#20422)" This reverts commit 639c460.
Codecov Report
@@ Coverage Diff @@
## master #20710 +/- ##
============================================
+ Coverage 34.70% 36.83% +2.13%
- Complexity 11994 12181 +187
============================================
Files 1694 1691 -3
Lines 129459 130030 +571
Branches 14132 14229 +97
============================================
+ Hits 44925 47900 +2975
+ Misses 78571 75844 -2727
- Partials 5963 6286 +323
Flags with carried forward coverage won't be shown. Click here to find out more.
|
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.
Why not fix the branch-2.11? I think this is the correct behavior that skips loading broker interceptor when disableBrokerInterceptors
is true.
If fix 2.11, both master and 2.11 use |
We need to discuss this |
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.
I support reverting it first and then finding a solution to fix the bug. Just to avoid any potential break changes introduced to the subsequent releases.
Motivation
After merging #20422 , the 2.11 may encounter NPE when config :
See code of branch-2.11
pulsar/pulsar-broker/src/main/java/org/apache/pulsar/broker/web/ProcessHandlerFilter.java
Lines 38 to 53 in dc25810
pulsar/pulsar-broker/src/main/java/org/apache/pulsar/broker/intercept/BrokerInterceptors.java
Lines 60 to 64 in dc25810
The master branch has fixed the NPE by #19376. it's hard to cherry-pick that to branch-2.11.
So in order to keep the same logic, we need to revert #20422 first and then discuss if we should keep
disableBrokerInterceptors
in the mail list.Documentation
doc
doc-required
doc-not-needed
doc-complete