accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Josh Elser (JIRA)" <>
Subject [jira] [Created] (ACCUMULO-4369) Poor exception propagation in Shell#setInstance()
Date Mon, 11 Jul 2016 19:05:11 GMT
Josh Elser created ACCUMULO-4369:

             Summary: Poor exception propagation in Shell#setInstance()
                 Key: ACCUMULO-4369
             Project: Accumulo
          Issue Type: Bug
          Components: test
            Reporter: Josh Elser
            Assignee: Josh Elser
             Fix For: 1.7.3, 1.8.0

experimentalPropTest(org.apache.accumulo.test.ShellConfigIT)  Time elapsed: 63.119 sec  <<<
java.lang.IllegalArgumentException: Unable to load client config from /etc/accumulo/conf/client.conf
  at org.apache.accumulo.fate.zookeeper.ZooSession.connect(
  at org.apache.accumulo.fate.zookeeper.ZooSession.getSession(
  at org.apache.accumulo.fate.zookeeper.ZooReader.getSession(
  at org.apache.accumulo.fate.zookeeper.ZooReader.getZooKeeper(
  at org.apache.accumulo.fate.zookeeper.ZooCache.getZooKeeper(
  at org.apache.accumulo.fate.zookeeper.ZooCache.retry(
  at org.apache.accumulo.fate.zookeeper.ZooCache.get(
  at org.apache.accumulo.fate.zookeeper.ZooCache.get(
  at org.apache.accumulo.core.client.ZooKeeperInstance.getInstanceID(
  at org.apache.accumulo.core.client.ZooKeeperInstance.<init>(
  at org.apache.accumulo.core.client.ZooKeeperInstance.<init>(
  at org.apache.accumulo.test.ShellServerIT$TestShell.<init>(
  at org.apache.accumulo.test.ShellConfigIT.experimentalPropTest(

This test failed, appearing to state that the test failed because it could not load the client
configuration file. However, if you actually inspect the stack trace, it points to the following

      if (System.currentTimeMillis() - startTime > 2 * timeout) {
        throw new RuntimeException("Failed to connect to zookeeper (" + host + ") within 2x
zookeeper timeout period " + timeout);

In fact, the test failed because it failed to connect to the zookeeper server with 2x the
ZK session timeout. We should improve this try/catch so that it's actually realistically telling
the user what went wrong.

This message was sent by Atlassian JIRA

View raw message