[ https://issues.apache.org/jira/browse/ACCUMULO-4026?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14960224#comment-14960224 ]
Josh Elser commented on ACCUMULO-4026: -------------------------------------- Haven't yet dug into why, but this causes three tests in ShellServerIT to fail (I was invoking {{mvn verify -Psunny}}. There may be more, but the sunny profile runs a limited set of ITs). {noformat} Tests run: 40, Failures: 3, Errors: 0, Skipped: 0, Time elapsed: 71.133 sec <<< FAILURE! - in org.apache.accumulo.test.ShellServerIT iter(org.apache.accumulo.test.ShellServerIT) Time elapsed: 1.543 sec <<< FAILURE! java.lang.AssertionError: expected:<0> but was:<1> at org.junit.Assert.fail(Assert.java:88) at org.junit.Assert.failNotEquals(Assert.java:743) at org.junit.Assert.assertEquals(Assert.java:118) at org.junit.Assert.assertEquals(Assert.java:555) at org.apache.accumulo.test.ShellServerIT$TestShell.assertGoodExit(ShellServerIT.java:196) at org.apache.accumulo.test.ShellServerIT$TestShell.exec(ShellServerIT.java:161) at org.apache.accumulo.test.ShellServerIT$TestShell.exec(ShellServerIT.java:155) at org.apache.accumulo.test.ShellServerIT.iter(ShellServerIT.java:447) namespaces(org.apache.accumulo.test.ShellServerIT) Time elapsed: 1.61 sec <<< FAILURE! java.lang.AssertionError: expected:<0> but was:<1> at org.junit.Assert.fail(Assert.java:88) at org.junit.Assert.failNotEquals(Assert.java:743) at org.junit.Assert.assertEquals(Assert.java:118) at org.junit.Assert.assertEquals(Assert.java:555) at org.apache.accumulo.test.ShellServerIT$TestShell.assertGoodExit(ShellServerIT.java:196) at org.apache.accumulo.test.ShellServerIT$TestShell.exec(ShellServerIT.java:161) at org.apache.accumulo.test.ShellServerIT$TestShell.exec(ShellServerIT.java:155) at org.apache.accumulo.test.ShellServerIT.namespaces(ShellServerIT.java:1206) setscaniterDeletescaniter(org.apache.accumulo.test.ShellServerIT) Time elapsed: 1.884 sec <<< FAILURE! java.lang.AssertionError: expected:<0> but was:<1> at org.junit.Assert.fail(Assert.java:88) at org.junit.Assert.failNotEquals(Assert.java:743) at org.junit.Assert.assertEquals(Assert.java:118) at org.junit.Assert.assertEquals(Assert.java:555) at org.apache.accumulo.test.ShellServerIT$TestShell.assertGoodExit(ShellServerIT.java:196) at org.apache.accumulo.test.ShellServerIT$TestShell.exec(ShellServerIT.java:161) at org.apache.accumulo.test.ShellServerIT$TestShell.exec(ShellServerIT.java:155) at org.apache.accumulo.test.ShellServerIT.setscaniterDeletescaniter(ShellServerIT.java:335) {noformat} [~jklucar], if you'd like to dig into why these are happening, that'd be great, otherwise I'm sure one of us will get around to investigating why. > Setting ACCUMULO_CLIENT_CONF_PATH with no client.conf file present throws > ConfigurationException > ------------------------------------------------------------------------------------------------ > > Key: ACCUMULO-4026 > URL: https://issues.apache.org/jira/browse/ACCUMULO-4026 > Project: Accumulo > Issue Type: Bug > Components: client, core > Affects Versions: 1.6.4, 1.7.0 > Reporter: Jim Klucar > Assignee: Jim Klucar > Priority: Trivial > Fix For: 1.6.5, 1.7.1, 1.8.0 > > > Setting the environment variable ACCUMULO_CLIENT_CONF_PATH to a directory > that exists but does not contain a file named client.conf throws > org.apache.commons.configuration.ConfigurationException: Cannot load a > configuration from a directory > To demo this, simply set ACCUMULO_CLIENT_CONF_PATH to /tmp, make sure > client.conf doesn't exist in /tmp and try to run the accumulo shell. > The problem is ClientConfiguration.java on line 221 checks File.canRead() > which is true for a Directory and a File. The solution is to make the branch > check File.isFile() && File.canRead() -- This message was sent by Atlassian JIRA (v6.3.4#6332)