[OPNFLWJAVA-9] Integration tests failing on Mac Created: 16/Dec/13  Updated: 06/Feb/14  Due: 22/Jan/14  Resolved: 06/Feb/14

Status: Resolved
Project: openflowjava
Component/s: General
Affects Version/s: unspecified
Fix Version/s: None

Type: Bug
Reporter: Jan Medved Assignee: Jan Medved
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: Mac OS
Platform: Macintosh


External issue ID: 247

 Description   

Hi,

the build fails on mac due to integration test failing:

T E S T S
-------------------------------------------------------
Running org.opendaylight.openflowjava.protocol.impl.integration.IntegrationTest
DEBUG 07:39:16.801 [ main] pl.integration.IntegrationTest -

starting test -------------------------------
INFO 07:39:16.809 [ main] ol.impl.integration.MockPlugin - Creating MockPlugin
INFO 07:39:16.822 [ main] ol.impl.integration.MockPlugin - mockPlugin: 139621165
INFO 07:39:17.009 [ Thread-1] .protocol.impl.core.TcpHandler - Switch listener started and ready to accept incoming connections on port: 60854
DEBUG 07:39:17.013 [ main] pl.integration.IntegrationTest - startup address in createclient: 10.21.95.140
ERROR 07:39:19.016 [ main] pl.integration.IntegrationTest - Timeout waiting for task.
java.util.concurrent.TimeoutException: Timeout waiting for task.
at com.google.common.util.concurrent.AbstractFuture$Sync.get(AbstractFuture.java:276)
at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:96)
at org.opendaylight.openflowjava.protocol.impl.integration.IntegrationTest.createAndStartClient(IntegrationTest.java:142)
at org.opendaylight.openflowjava.protocol.impl.integration.IntegrationTest.testHandshake(IntegrationTest.java:88)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124)
at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
DEBUG 07:39:19.527 [ main] pl.integration.IntegrationTest -

starting test -------------------------------
INFO 07:39:19.527 [ main] ol.impl.integration.MockPlugin - Creating MockPlugin
INFO 07:39:19.527 [ main] ol.impl.integration.MockPlugin - mockPlugin: 298776766
INFO 07:39:19.530 [ Thread-4] .protocol.impl.core.TcpHandler - Switch listener started and ready to accept incoming connections on port: 60856
DEBUG 07:39:19.532 [ main] pl.integration.IntegrationTest - startup address in createclient: 10.21.95.140
ERROR 07:39:21.533 [ main] pl.integration.IntegrationTest - Timeout waiting for task.
java.util.concurrent.TimeoutException: Timeout waiting for task.
at com.google.common.util.concurrent.AbstractFuture$Sync.get(AbstractFuture.java:276)
at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:96)
at org.opendaylight.openflowjava.protocol.impl.integration.IntegrationTest.createAndStartClient(IntegrationTest.java:142)
at org.opendaylight.openflowjava.protocol.impl.integration.IntegrationTest.testHandshakeAndEcho(IntegrationTest.java:108)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124)
at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 5.391 sec <<< FAILURE! - in org.opendaylight.openflowjava.protocol.impl.integration.IntegrationTest
testHandshake(org.opendaylight.openflowjava.protocol.impl.integration.IntegrationTest) Time elapsed: 2.727 sec <<< ERROR!
java.util.concurrent.ExecutionException: java.util.concurrent.TimeoutException: Timeout waiting for task.
at com.google.common.util.concurrent.AbstractFuture$Sync.get(AbstractFuture.java:276)
at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:96)
at org.opendaylight.openflowjava.protocol.impl.integration.IntegrationTest.createAndStartClient(IntegrationTest.java:142)
at org.opendaylight.openflowjava.protocol.impl.integration.IntegrationTest.testHandshake(IntegrationTest.java:88)

testHandshakeAndEcho(org.opendaylight.openflowjava.protocol.impl.integration.IntegrationTest) Time elapsed: 2.508 sec <<< ERROR!
java.util.concurrent.ExecutionException: java.util.concurrent.TimeoutException: Timeout waiting for task.
at com.google.common.util.concurrent.AbstractFuture$Sync.get(AbstractFuture.java:276)
at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:96)
at org.opendaylight.openflowjava.protocol.impl.integration.IntegrationTest.createAndStartClient(IntegrationTest.java:142)
at org.opendaylight.openflowjava.protocol.impl.integration.IntegrationTest.testHandshakeAndEcho(IntegrationTest.java:108)

Results :

Tests in error:
IntegrationTest.testHandshake:88->createAndStartClient:145 Execution java.util...
IntegrationTest.testHandshakeAndEcho:108->createAndStartClient:145 Execution j...

Tests run: 2, Failures: 0, Errors: 2, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] openflow-protocol-parent .......................... SUCCESS [0.741s]
[INFO] Openflow Protocol Library - API ................... SUCCESS [1:01.979s]
[INFO] Openflow Protocol Library - SPI ................... SUCCESS [2.415s]
[INFO] Openflow Protocol Library - IMPL .................. SUCCESS [15.117s]
[INFO] Openflow Protocol Simple Client ................... SUCCESS [2.909s]
[INFO] Openflow Protocol Integration Test ................ FAILURE [6.755s]
[INFO] OpenFlow 1.3 Protocol Driver ...................... SKIPPED
[INFO] OpenFlow Java ..................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:30.920s
[INFO] Finished at: Mon Dec 16 07:39:22 PST 2013
[INFO] Final Memory: 64M/583M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.16:test (default-test) on project openflow-protocol-it: There are test failures.

The build fails even after clearing the local m2 cache.



 Comments   
Comment by Michal Rehak [ 23/Jan/14 ]

Build failure stopped appearing after system update on mac.

Generated at Wed Feb 07 20:28:43 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.