[ https://issues.apache.org/jira/browse/ZOOKEEPER-1691?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13863881#comment-13863881 ]
Helen Hastings commented on ZOOKEEPER-1691: ------------------------------------------- I fixed part 2 to issue a BadArgument error. I'm holding off on uploading the patch until we resolve what I'm about to bring up. When I start two servers with standaloneEnabled = true and attempt to remove one (either the leader or follower) from the configuration I get the following error, as expected: "Error:KeeperErrorCode = BadArguments for Reconfig failed - new configuration must include at least 2 followers." When I start two servers with standaloneEnabled = true and force the leader to shut down I get the following error, as expected: "shutdown Leader! reason: Not sufficient followers synced, only synced with sids: [ 2 ]" (which occurs from Leader.java when there is no longer a quorum). When I start two servers with standaloneEnabled = true and force the follower to shut down, the leader sets its state to LOOKING but hangs because it cannot connect to the shut down server. This is the case before my changes as well. Can you let me know under what circumstances are you removing 1 server from 2 servers with the remaining server running as normal so I can try to duplicate it? I also spent some time checking other edge cases and found everything to be working fine. Thanks! Helen > Add a flag to disable standalone mode > ------------------------------------- > > Key: ZOOKEEPER-1691 > URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1691 > Project: ZooKeeper > Issue Type: Improvement > Components: quorum > Reporter: Michi Mutsuzaki > Assignee: Helen Hastings > Fix For: 3.5.0 > > Attachments: ZOOKEEPER-1691.patch, ZOOKEEPER-1691.patch, > ZOOKEEPER-1691.patch, ZOOKEEPER-1691.patch, ZOOKEEPER-1691.patch, > ZOOKEEPER-1691.patch, test scenario.txt > > > Currently you cannot use dynamic reconfiguration to bootstrap zookeeper > cluster because the server goes into standalone mode when there is only one > server in the cluster. > --Michi -- This message was sent by Atlassian JIRA (v6.1.5#6160)