You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@zookeeper.apache.org by GitBox <gi...@apache.org> on 2020/01/08 17:05:04 UTC

[GitHub] [zookeeper] jhuan31 opened a new pull request #1210: ZOOKEEPER-3682: Stop initializing new SSL connection if ZK server is …

jhuan31 opened a new pull request #1210: ZOOKEEPER-3682: Stop initializing new SSL connection if ZK server is …
URL: https://github.com/apache/zookeeper/pull/1210
 
 
   …shutting down

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [zookeeper] anmolnar commented on a change in pull request #1210: ZOOKEEPER-3682: Stop initializing new SSL connection if ZK server is …

Posted by GitBox <gi...@apache.org>.
anmolnar commented on a change in pull request #1210: ZOOKEEPER-3682: Stop initializing new SSL connection if ZK server is …
URL: https://github.com/apache/zookeeper/pull/1210#discussion_r372390272
 
 

 ##########
 File path: zookeeper-server/src/main/java/org/apache/zookeeper/server/NettyServerCnxnFactory.java
 ##########
 @@ -224,6 +224,14 @@ public void channelActive(ChannelHandlerContext ctx) throws Exception {
             NettyServerCnxn cnxn = new NettyServerCnxn(channel, zkServer, NettyServerCnxnFactory.this);
             ctx.channel().attr(CONNECTION_ATTRIBUTE).set(cnxn);
 
+            // Check the zkServer assigned to the cnxn is still running,
+            // close it before starting the heavy TLS handshake
+            if (!cnxn.isZKServerRunning()) {
+                ServerMetrics.getMetrics().CNXN_CLOSED_WITHOUT_ZK_SERVER_RUNNING.add(1);
 
 Review comment:
   Log the event here?
   Logging is also missing when connection is rejected due to maximum number of connections. Might be useful to add that as well.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [zookeeper] jhuan31 commented on issue #1210: ZOOKEEPER-3682: Stop initializing new SSL connection if ZK server is …

Posted by GitBox <gi...@apache.org>.
jhuan31 commented on issue #1210: ZOOKEEPER-3682: Stop initializing new SSL connection if ZK server is …
URL: https://github.com/apache/zookeeper/pull/1210#issuecomment-572280375
 
 
   I clicked "Details"and it seem the build has finished and passed but it still shows "pending check" here...

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [zookeeper] anmolnar commented on issue #1210: ZOOKEEPER-3682: Stop initializing new SSL connection if ZK server is …

Posted by GitBox <gi...@apache.org>.
anmolnar commented on issue #1210: ZOOKEEPER-3682: Stop initializing new SSL connection if ZK server is …
URL: https://github.com/apache/zookeeper/pull/1210#issuecomment-579762351
 
 
   retest this please

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [zookeeper] asfgit closed pull request #1210: ZOOKEEPER-3682: Stop initializing new SSL connection if ZK server is …

Posted by GitBox <gi...@apache.org>.
asfgit closed pull request #1210: ZOOKEEPER-3682: Stop initializing new SSL connection if ZK server is …
URL: https://github.com/apache/zookeeper/pull/1210
 
 
   

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services