accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christopher Tubbs (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ACCUMULO-3218) ZooKeeperInstance only uses first ZooKeeper in list of quorum
Date Fri, 10 Oct 2014 18:59:35 GMT

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

Christopher Tubbs commented on ACCUMULO-3218:
---------------------------------------------

Also note that commons-configuration 2 (in beta) has more sensible defaults in AbstractConfiguration's
implementation.

> 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)

Mime
View raw message