[
https://issues.apache.org/jira/browse/ZOOKEEPER-2006?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14097821#comment-14097821
]
Hongchao Deng commented on ZOOKEEPER-2006:
------------------------------------------
Let me give one example and make it clearer:
* static file doesn't set "standaloneEnabled" but has a dynamic config file.
* the dynamic config contains only a single server information.
When it is booted up, the server will be in standalone mode. So there are two
potential problems:
* the user might just want to setup a single server and add more servers later.
* the user might not realize that standalone mode requires client port to be in
the old way in static file like "clientPort=2818"
I think it would be nice to disable standalone mode if "dynamicConfigFile" is
set.
> Standalone mode won't take client port from dynamic config file
> ---------------------------------------------------------------
>
> Key: ZOOKEEPER-2006
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2006
> Project: ZooKeeper
> Issue Type: Bug
> Affects Versions: 3.5.0
> Reporter: Hongchao Deng
>
> Currently, when a server only specify client port only in dynamic file, on
> standalone mode it will be ignored and no client port will be setup.
> It confuses the use of dynamic file and we should come up with something to
> handle this. One solution would be dynamic file doesn't allow standalone mode.
--
This message was sent by Atlassian JIRA
(v6.2#6252)