accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Josh Elser (JIRA)" <>
Subject [jira] [Created] (ACCUMULO-3218) ZooKeeperInstance only uses first ZooKeeper in list of quorum
Date Thu, 09 Oct 2014 22:21:34 GMT
Josh Elser created ACCUMULO-3218:

             Summary: ZooKeeperInstance only uses first ZooKeeper in list of quorum
                 Key: ACCUMULO-3218
             Project: Accumulo
          Issue Type: Bug
          Components: client
    Affects Versions: 1.6.1, 1.6.0
            Reporter: Josh Elser
            Assignee: Josh Elser
            Priority: Blocker
             Fix For: 1.6.2

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

There was no client.conf file present, so a ClientConfiguration was constructed from accumulo-site.xml.

this.zooKeepers = clientConf.get(ClientProperty.INSTANCE_ZK_HOST);

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:

    ZooKeeperInstance inst = new ZooKeeperInstance("accumulo", "localhost,");

The above will print


instead of the expected


This message was sent by Atlassian JIRA

View raw message