zookeeper-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From h...@apache.org
Subject zookeeper git commit: ZOOKEEPER-2638: ZooKeeper should log which serverCnxnFactory is used during startup
Date Tue, 18 Apr 2017 23:19:22 GMT
Repository: zookeeper
Updated Branches:
  refs/heads/branch-3.5 0665cb75b -> 01f0c059c


ZOOKEEPER-2638: ZooKeeper should log which serverCnxnFactory is used during startup

Author: Abraham Fine <afine@apache.org>

Reviewers: Michael Han <hanm@apache.org>, Edward Ribeiro <edward.ribeiro@gmail.com>

Closes #216 from afine/ZOOKEEPER-2638


Project: http://git-wip-us.apache.org/repos/asf/zookeeper/repo
Commit: http://git-wip-us.apache.org/repos/asf/zookeeper/commit/01f0c059
Tree: http://git-wip-us.apache.org/repos/asf/zookeeper/tree/01f0c059
Diff: http://git-wip-us.apache.org/repos/asf/zookeeper/diff/01f0c059

Branch: refs/heads/branch-3.5
Commit: 01f0c059c912fde07960238812e6051e1fa5e65d
Parents: 0665cb7
Author: Abraham Fine <afine@apache.org>
Authored: Tue Apr 18 16:19:18 2017 -0700
Committer: Michael Han <hanm@apache.org>
Committed: Tue Apr 18 16:19:18 2017 -0700

----------------------------------------------------------------------
 .../main/org/apache/zookeeper/server/ServerCnxnFactory.java     | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/zookeeper/blob/01f0c059/src/java/main/org/apache/zookeeper/server/ServerCnxnFactory.java
----------------------------------------------------------------------
diff --git a/src/java/main/org/apache/zookeeper/server/ServerCnxnFactory.java b/src/java/main/org/apache/zookeeper/server/ServerCnxnFactory.java
index fc6766c..1d2b044 100644
--- a/src/java/main/org/apache/zookeeper/server/ServerCnxnFactory.java
+++ b/src/java/main/org/apache/zookeeper/server/ServerCnxnFactory.java
@@ -130,8 +130,9 @@ public abstract class ServerCnxnFactory {
             serverCnxnFactoryName = NIOServerCnxnFactory.class.getName();
         }
         try {
-            return (ServerCnxnFactory) Class.forName(serverCnxnFactoryName)
-                                                .newInstance();
+            ServerCnxnFactory serverCnxnFactory = (ServerCnxnFactory) Class.forName(serverCnxnFactoryName).newInstance();
+            LOG.info("Using {} as server connection factory", serverCnxnFactoryName);
+            return serverCnxnFactory;
         } catch (Exception e) {
             IOException ioe = new IOException("Couldn't instantiate "
                     + serverCnxnFactoryName);


Mime
View raw message