You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by "Josh Elser (JIRA)" <ji...@apache.org> on 2014/10/10 00:21:34 UTC
[jira] [Created] (ACCUMULO-3218) ZooKeeperInstance only uses first
ZooKeeper in list of quorum
Josh Elser created ACCUMULO-3218:
------------------------------------
Summary: 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.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 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)