-
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][proxy] Reuse authentication instance in pulsar-proxy #23113
[improve][proxy] Reuse authentication instance in pulsar-proxy #23113
Conversation
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. @michaeljmarshall do you have a chance to review?
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
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #23113 +/- ##
============================================
- Coverage 73.57% 73.45% -0.12%
- Complexity 32624 33236 +612
============================================
Files 1877 1919 +42
Lines 139502 144110 +4608
Branches 15299 15747 +448
============================================
+ Hits 102638 105858 +3220
- Misses 28908 30141 +1233
- Partials 7956 8111 +155
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.
👍
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
(cherry picked from commit 3e461c0)
Motivation
In #12245 , try to remove redundant authentication instances and reuse it. However, in #15824 , the creation of authentication instances per DirectProxyHandler was reintroduced.
In #13836 , PulsarClient was removed from pulsar-proxy. As a result, this section (close of authentication instance) is no longer executed in pulsar-proxy. So, there is no need to create these instances per Client connections.
pulsar/pulsar-client/src/main/java/org/apache/pulsar/client/impl/PulsarClientImpl.java
Lines 911 to 918 in 92bcd07
Modifications
Verifying this change
This change added tests and can be verified as follows:
org.apache.pulsar.proxy.server.ProxyServiceStarter#start
Does this pull request potentially affect one of the following parts:
If the box was checked, please highlight the changes
Documentation
doc
doc-required
doc-not-needed
doc-complete
Matching PR in forked repository
PR in forked repository: equanz#8