Mate Szalay-Beko created ZOOKEEPER-3633:
-------------------------------------------
Summary: AdminServer commands throw NPE when only secure client
port is used
Key: ZOOKEEPER-3633
URL: https://issues.apache.org/jira/browse/ZOOKEEPER-3633
Project: ZooKeeper
Issue Type: Bug
Affects Versions: 3.5.6, 3.5.5
Reporter: Mate Szalay-Beko
Assignee: Mate Szalay-Beko
Fix For: 3.6.0
Attachments: npe.txt
*thanks for Mike Smotritsky for reporting this bug!*
when only secureClientPort is defined in the config and there is no regular
clientPort, then both the {{stat}} and the {{conf}} commands result in 500
Server Error caused by NullPointerExceptions. The problem is that no
{{serverCnxFactory}} is defined in the {{ZooKeeperServer}} in this case, we
have only {{secureServerCnxnFactory}}.
see the attached stacktraces about the exceptions (reproduced on the current
master branch)
The stat and conf admin commands should actually provide info about both secure
and unsecure connections, and should handle the case when any of these are
missing.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)