[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✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #20710 +/- ##
=============================================
+ Coverage 34.70% 72.99% +38.29%
- Complexity 11994 32012 +20018
=============================================
Files 1694 1868 +174
Lines 129459 139619 +10160
Branches 14132 15400 +1268
=============================================
+ Hits 44925 101911 +56986
+ Misses 78571 29631 -48940
- Partials 5963 8077 +2114
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
nodece
left a comment
There was a problem hiding this comment.
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 |
codelipenghui
left a comment
There was a problem hiding this comment.
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
disableBrokerInterceptorsin the mail list.Documentation
docdoc-requireddoc-not-neededdoc-complete