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:32 GMT
Repository: zookeeper
Updated Branches:
  refs/heads/master a43b98268 -> 5d8616525


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

(cherry picked from commit 01f0c059c912fde07960238812e6051e1fa5e65d)
Signed-off-by: Michael Han <hanm@apache.org>


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

Branch: refs/heads/master
Commit: 5d86165250aeed6c109bd74f66814711b88ba015
Parents: a43b982
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:29 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/5d861652/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