You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2021/09/26 04:08:47 UTC
[GitHub] [pulsar] liangyuanpeng commented on a change in pull request #12047: [Issue 12046][Broker] Check WebServicePortTls and BrokerServicePorts when tlsEnabled
liangyuanpeng commented on a change in pull request #12047:
URL: https://github.com/apache/pulsar/pull/12047#discussion_r716136591
##########
File path: pulsar-broker/src/main/java/org/apache/pulsar/broker/PulsarService.java
##########
@@ -610,6 +610,11 @@ public void start() throws PulsarServerException {
throw new IllegalArgumentException("brokerServicePort/brokerServicePortTls must be present");
}
+ if (config.isTlsEnabled()
+ && (!config.getWebServicePortTls().isPresent() || !config.getBrokerServicePortTls().isPresent())){
+ throw new IllegalArgumentException("webServicePortTls/brokerServicePortTls must be present");
Review comment:
It is better to be consistent with the current state of the project, same of `brokerServicePort/brokerServicePortTls must be present`It is better to be consistent with the current state of the project, same of `brokerServicePort/brokerServicePortTls must be present`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org