You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@accumulo.apache.org by Josh Elser <jo...@gmail.com> on 2016/04/01 16:00:52 UTC

Re: Anyone else have trouble running all integration tests on a Mac?

There is a -Dtimeout.factor option you can set on the Maven CLI to scale 
up the timeouts.

e.g. `mvn verify -Dtimeout.factor=2` would double the default test timeouts.

Interesting that both of the failures are from stopping processes, but 
that might be circumstantial? Dunno for sure.

Christopher wrote:
> I see periodic failures on Linux, too. Some tests are timing sensitive,
> others may get stuck in various places. If we can troubleshoot them and fix
> them, we should. But, I don't think there's necessarily anything specific
> about the Mac, vs. Linux, which is triggering these failures.
>
> On Thu, Mar 31, 2016 at 2:26 PM Michael Wall<mj...@gmail.com>  wrote:
>
>> I consistently have issues running 'mvn clean verify' on Accumulo on my
>> Mac?  This does not happen when I build on Linux.
>>
>> Some specs.
>> Maven 3.2.5
>> Java 1.7 and 1.8
>> Accumulo branch 1.6
>> OSX 10.10.5
>> 16G Ram
>> MAVEN_OPTS -Xmx1024m -Xms256m -XX:PermSize=128m -XX:MaxPermSize=256m
>>
>> Josh mentioned making sure DNS can resolve.  But I have the following in my
>> /etc/hosts
>> 127.0.0.1 localhost<output of hostname -f>
>> 255.255.255.255 broadcasthost
>> ::1             localhost
>> #fe80::1%lo0 localhost
>>
>> You will see the ipv6 line commented out, was causing issues on another
>> project.
>>
>> The first test that fails is Accumulo3047IT.  When run by itself, it works
>> fine.  When it fails, it doesn't seem to get past the alterConfig method
>> which has the @Before.  This method tears down the MAC and restarts with
>> different configs.  The ExampleIT always takes the longest, in this case
>> 1,131.977 sec.
>>
>> I pasted the full output from maven at http://pastebin.com/raw/YFiqKRNm,
>> but here are some highlights
>>
>> -------------------------------------------------------
>>   T E S T S
>> -------------------------------------------------------
>> Running org.apache.accumulo.server.security.SystemCredentialsIT
>> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 16.896 sec
>> - in org.apache.accumulo.server.security.SystemCredentialsIT
>> Running org.apache.accumulo.test.Accumulo3010IT
>> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 38.626 sec
>> - in org.apache.accumulo.test.Accumulo3010IT
>> Running org.apache.accumulo.test.Accumulo3047IT
>> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 60.18 sec
>> <<<  FAILURE! - in org.apache.accumulo.test.Accumulo3047IT
>> test(org.apache.accumulo.test.Accumulo3047IT)  Time elapsed: 60.033 sec
>>   <<<  ERROR!
>> java.lang.Exception: test timed out after 60000 milliseconds
>> at sun.misc.Unsafe.park(Native Method)
>> at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215)
>> at java.util.concurrent.FutureTask.awaitDone(FutureTask.java:426)
>> at java.util.concurrent.FutureTask.get(FutureTask.java:204)
>> at
>>
>> org.apache.accumulo.minicluster.impl.MiniAccumuloClusterImpl.stopProcessWithTimeout(MiniAccumuloClusterImpl.java:750)
>> at
>>
>> org.apache.accumulo.minicluster.impl.MiniAccumuloClusterControl.stop(MiniAccumuloClusterControl.java:234)
>> at
>>
>> org.apache.accumulo.minicluster.impl.MiniAccumuloClusterImpl.stop(MiniAccumuloClusterImpl.java:667)
>> at
>>
>> org.apache.accumulo.harness.AccumuloClusterIT.teardownCluster(AccumuloClusterIT.java:135)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>>
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>> at
>>
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:497)
>> at
>>
>> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
>> at
>>
>> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>> at
>>
>> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
>> at
>> org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:33)
>> at
>>
>> org.junit.internal.runners.statements.FailOnTimeout$StatementThread.run(FailOnTimeout.java:74)
>> ...
>> Running org.apache.accumulo.test.ConditionalWriterIT
>> Tests run: 18, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 282.206
>> sec<<<  FAILURE! - in org.apache.accumulo.test.ConditionalWriterIT
>> testTrace(org.apache.accumulo.test.ConditionalWriterIT)  Time elapsed:
>> 60.008 sec<<<  ERROR!
>> java.lang.Exception: test timed out after 60000 milliseconds
>> at java.lang.Thread.sleep(Native Method)
>> at
>>
>> org.apache.accumulo.test.ConditionalWriterIT.testTrace(ConditionalWriterIT.java:1433)
>> ...
>> Running org.apache.accumulo.test.functional.DeleteRowsIT
>> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 82.884 sec
>> - in org.apache.accumulo.test.functional.DeleteRowsIT
>> Running org.apache.accumulo.test.functional.DeleteRowsSplitIT
>> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 41.212 sec
>> - in org.apache.accumulo.test.functional.DeleteRowsSplitIT
>> Running org.apache.accumulo.test.functional.DeleteTableDuringSplitIT
>> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 225.544 sec
>> - in org.apache.accumulo.test.functional.DeleteTableDuringSplitIT
>> Running org.apache.accumulo.test.functional.DynamicThreadPoolsIT
>> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 52.18 sec -
>> in org.apache.accumulo.test.functional.DynamicThreadPoolsIT
>> Running org.apache.accumulo.test.functional.ExamplesIT
>> Tests run: 18, Failures: 1, Errors: 1, Skipped: 0, Time elapsed: 1,131.977
>> sec<<<  FAILURE! - in org.apache.accumulo.test.functional.ExamplesIT
>> testDirList(org.apache.accumulo.test.functional.ExamplesIT)  Time elapsed:
>> 360.284 sec<<<  ERROR!
>> java.lang.Exception: test timed out after 360000 milliseconds
>> at java.lang.Object.wait(Native Method)
>> at java.lang.Object.wait(Object.java:502)
>> at java.lang.UNIXProcess.waitFor(UNIXProcess.java:396)
>> at
>>
>> org.apache.accumulo.minicluster.impl.MiniAccumuloClusterControl.execWithStdout(MiniAccumuloClusterControl.java:88)
>> at
>>
>> org.apache.accumulo.test.functional.ExamplesIT.testDirList(ExamplesIT.java:202)
>>
>> testWordCount(org.apache.accumulo.test.functional.ExamplesIT)  Time
>> elapsed: 119.848 sec<<<  FAILURE!
>> java.lang.AssertionError: Could not connect to Accumulo
>> at org.junit.Assert.fail(Assert.java:88)
>> at
>>
>> org.apache.accumulo.harness.AccumuloClusterIT.getConnector(AccumuloClusterIT.java:180)
>> at
>>
>> org.apache.accumulo.test.functional.ExamplesIT.getClusterInfo(ExamplesIT.java:126)
>>
>> ...
>> [INFO] Failsafe report directory:
>> /Users/mjwall/NetBeansProjects/accumulo-mjwall/test/target/failsafe-reports
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Reactor Summary:
>> [INFO]
>> [INFO] Apache Accumulo Project ............................ SUCCESS [
>> 31.078 s]
>> [INFO] Apache Accumulo Trace .............................. SUCCESS [
>> 21.290 s]
>> [INFO] Apache Accumulo Fate ............................... SUCCESS [
>> 45.400 s]
>> [INFO] Apache Accumulo Start .............................. SUCCESS [01:16
>> min]
>> [INFO] Apache Accumulo Core ............................... SUCCESS [04:42
>> min]
>> [INFO] Apache Accumulo Simple Examples .................... SUCCESS [
>> 24.309 s]
>> [INFO] Apache Accumulo Server Base ........................ SUCCESS [
>> 53.712 s]
>> [INFO] Apache Accumulo GC Server .......................... SUCCESS [
>> 12.093 s]
>> [INFO] Apache Accumulo Master Server ...................... SUCCESS [
>> 18.838 s]
>> [INFO] Apache Accumulo Monitor Server ..................... SUCCESS [
>> 16.219 s]
>> [INFO] Apache Accumulo Tracer Server ...................... SUCCESS [
>>   6.204 s]
>> [INFO] Apache Accumulo Tablet Server ...................... SUCCESS [
>> 44.351 s]
>> [INFO] Apache Accumulo MiniCluster ........................ SUCCESS [01:11
>> min]
>> [INFO] Apache Accumulo Native Libraries ................... SUCCESS [
>> 22.337 s]
>> [INFO] Apache Accumulo Testing ............................ FAILURE [
>>   02:06 h]
>> [INFO] Apache Accumulo Proxy .............................. SKIPPED
>> [INFO] Apache Accumulo .................................... SKIPPED
>> [INFO] Apache Accumulo Documentation ...................... SKIPPED
>> [INFO] Apache Accumulo Maven Plugin ....................... SKIPPED
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] BUILD FAILURE
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Total time: 02:19 h
>> [INFO] Finished at: 2016-03-31T11:26:41-04:00
>> [INFO] Final Memory: 64M/442M
>> [INFO]
>> ------------------------------------------------------------------------
>>
>> Thanks
>>
>> Mike
>>
>