[
https://issues.apache.org/jira/browse/ACCUMULO-3218?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14167297#comment-14167297
]
Josh Elser commented on ACCUMULO-3218:
--------------------------------------
Christopher said on IRC that the patch looks reasonable to him.
> ZooKeeperInstance only uses first ZooKeeper in list of quorum
> -------------------------------------------------------------
>
> Key: ACCUMULO-3218
> URL: https://issues.apache.org/jira/browse/ACCUMULO-3218
> Project: Accumulo
> Issue Type: Bug
> Components: client
> Affects Versions: 1.6.0, 1.6.1
> Reporter: Josh Elser
> Assignee: Josh Elser
> Priority: Blocker
> Fix For: 1.6.2, 1.7.0
>
> Attachments:
> 0001-ACCUMULO-3218-Set-the-list-separator-to-0-to-disable.patch
>
>
> Had tests running which had a quorum of 3 ZooKeeper servers. One appears to
> have died and the test was then unable to connect to the Accumulo shell,
> hanging on trying to connect to ZooKeeper.
> There was no client.conf file present, so a ClientConfiguration was
> constructed from accumulo-site.xml.
> {code}
> this.zooKeepers = clientConf.get(ClientProperty.INSTANCE_ZK_HOST);
> {code}
> When the commons configuration AbstractConfiguration class is used with the
> get() method, only the first element in the value is returned, as the
> implementation treats the other items as a list because of the default
> separator of a comma.
> It's easily reproduced with the following:
> {code}
> ZooKeeperInstance inst = new ZooKeeperInstance("accumulo",
> "localhost,127.0.0.1");
> System.out.println(inst.getZooKeepers());
> {code}
> The above will print
> {noformat}
> localhost
> {noformat}
> instead of the expected
> {noformat}
> localhost,127.0.0.1
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)