[
https://issues.apache.org/jira/browse/KNOX-1011?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Larry McCay updated KNOX-1011:
------------------------------
Fix Version/s: (was: 0.15.0)
> Knox LDAP demo server port(33389) is hardcoded. provide an option to make it
> configurable.
> ------------------------------------------------------------------------------------------
>
> Key: KNOX-1011
> URL: https://issues.apache.org/jira/browse/KNOX-1011
> Project: Apache Knox
> Issue Type: Improvement
> Components: KnoxSSO
> Affects Versions: 0.12.0
> Reporter: Ayub Pathan
> Assignee: Attila Csoma
> Priority: Critical
> Fix For: Future
>
> Attachments: KNOX-1011.patch
>
>
> [[Background]]
> h2. *Problem:* Knox demo LDAP server fails to start intermittently(happening
> more frequently these days), resulting in knox tests failures. LDAP server
> fails to start because port 33389, which it uses for listening incoming
> connections is already occupied on the machine.
> h2. *RCA:*
> *Question: why are we seeing zookeeper node using 33389 port?*
> * ZooKeeper has the notion of ephemeral nodes. These ephemeral znodes exists
> as long as the session that created the znode is active. When the session
> ends the znode is deleted. These ephemeral nodes make use of ephemeral ports
> depending on the system configuration.
> This ephemeral port is taken from the range defined by the output of the
> following command.
> {noformat}
> [root@ctr-e134-1499953498516-111711-01-000004 ~]# sysctl
> net.ipv4.ip_local_port_range
> net.ipv4.ip_local_port_range = 32768 61000
> [root@ctr-e134-1499953498516-111711-01-000004 ~]#
> {noformat}
> *These ephemeral znodes exists as long as the session that created the znode
> is active*. This is the reason we are seeing zookeeper nodes using 33389 port
> randomly sometimes, which is resulting in LDAP server startup failures.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)