natural commented on a change in pull request #4202: NIFI-7203 Support for TLS 
in Zookeeper Server
URL: https://github.com/apache/nifi/pull/4202#discussion_r407768353
 
 

 ##########
 File path: 
nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/controller/state/server/ZooKeeperStateServer.java
 ##########
 @@ -123,8 +132,16 @@ private void startDistributed() throws IOException {
         try {
             transactionLog = new 
FileTxnSnapLog(quorumPeerConfig.getDataLogDir(), quorumPeerConfig.getDataDir());
 
+            final InetSocketAddress port = 
quorumPeerConfig.getClientPortAddress();
+            final InetSocketAddress secPort = 
quorumPeerConfig.getSecureClientPortAddress();
             connectionFactory = ServerCnxnFactory.createFactory();
-            
connectionFactory.configure(quorumPeerConfig.getClientPortAddress(), 
quorumPeerConfig.getMaxClientCnxns());
+            if (secPort != null) {
 
 Review comment:
   Also same.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to