-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
TLS Port for Minion #12943
TLS Port for Minion #12943
Conversation
pinot-minion/src/main/java/org/apache/pinot/minion/BaseMinionStarter.java
Outdated
Show resolved
Hide resolved
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #12943 +/- ##
============================================
+ Coverage 61.75% 62.22% +0.47%
+ Complexity 207 198 -9
============================================
Files 2436 2502 +66
Lines 133233 136466 +3233
Branches 20636 21120 +484
============================================
+ Hits 82274 84912 +2638
- Misses 44911 45279 +368
- Partials 6048 6275 +227
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@@ -116,6 +117,7 @@ public void init(PinotConfiguration config) | |||
_instanceId = CommonConstants.Helix.PREFIX_OF_MINION_INSTANCE + _hostname + "_" + _port; | |||
} | |||
_listenerConfigs = ListenerConfigUtil.buildMinionConfigs(_config); | |||
_tlsPort = ListenerConfigUtil.findLastTlsPort(_listenerConfigs, 0); |
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.
this should be -1
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.
This is 0 for other participant types, shall we change for them as well?
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.
hmm, you mean all other components generating tls port for admin apis if not specified?
I checked broker is using -1.
This PR adds a TLS port to minion, just like other components. With this, we can communicate with minion using
https
. In addition to this, we should add this config to minions:And export port 9500 in the headless svc.