[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-2273?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14745683#comment-14745683
 ] 

Benjamin Jaton commented on ZOOKEEPER-2273:
-------------------------------------------

OK I apologize for the confusion, I didn't think about the standaloneEnabled 
flag.
I meant standalone as "not in a cluster", but *I do set 
standaloneEnabled=false* because the goal is to add other nodes to form a 3 
nodes cluster.

Before B joins A here is the configuration:

node A has:
{code}standaloneEnabled=false
dynamicConfigFile=/tmp/zookeeper/conf/zoo.cfg.dynamic{code}
{code}server.1=hostA:2888:3888:participant;0.0.0.0:2181
version=100000000{code}

node B has:
{code}standaloneEnabled=false
dynamicConfigFile=/tmp/zookeeper/conf/zoo.cfg.dynamic.1000004dc{code}
{code}server.1=hostA:2888:3888:participant;0.0.0.0:2181
server.2=hostB:2888:3888:participant;0.0.0.0:2181
version=1000004dc{code}



> Uninvited ZK joins the ensemble
> -------------------------------
>
>                 Key: ZOOKEEPER-2273
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2273
>             Project: ZooKeeper
>          Issue Type: Bug
>            Reporter: Benjamin Jaton
>
> Scenario:
> - Install a Zookeeper on machine A
> - Install a Zookeeper on machine B, joining A to form an ensemble
> - Reinstall ZooKeeper on A (but with standaloneEnabled=false)
> -> B automatically joins A to form an ensemble again
> I think the work needed is discussed and addressed in ZOOKEEPER-832.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to