git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[jira] [Updated] (ARIES-1871) race condition during test execution


     [ https://issues.apache.org/jira/browse/ARIES-1871?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Raymond Augé updated ARIES-1871:
--------------------------------
    Description: 
When I run the jax-rs-whiteboard tests about 30-40% of the time I get a failure as follows (Always the same test):
{code:java}
TEST testSSEApplication(test.JaxrsTest) <<< ERROR: expected:<[welcome, message]> but was:<[]>
java.lang.AssertionError: expected:<[welcome, message]> but was:<[]>
    at org.junit.Assert.fail(Assert.java:88)
    at org.junit.Assert.failNotEquals(Assert.java:834)
    at org.junit.Assert.assertEquals(Assert.java:118)
    at org.junit.Assert.assertEquals(Assert.java:144)
    at test.JaxrsTest.testSSEApplication(JaxrsTest.java:2327)
    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:498)
    at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
    at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
    at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
    at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
    at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
    at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
    at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
    at junit.framework.JUnit4TestAdapter.run(JUnit4TestAdapter.java:38)
    at junit.framework.TestSuite.runTest(TestSuite.java:252)
    at junit.framework.TestSuite.run(TestSuite.java:247)
    at aQute.junit.Activator.test(Activator.java:351)
    at aQute.junit.Activator.automatic(Activator.java:237)
    at aQute.junit.Activator.run(Activator.java:178)
    at aQute.launcher.Launcher.lambda$serviceChanged$0(Launcher.java:1345)
    at aQute.launcher.Launcher.run(Launcher.java:347)
    at aQute.launcher.Launcher.main(Launcher.java:147){code}
{code:java}
Tests run  : 64
Passed     : 63
Errors     : 1
Failures   : 0
[INFO] 1 Error(s){code}
there's often a variation in the actual result, such as zero or one of "{{welcome, message".}}

  was:
When I run the jax-rs-whiteboard tests about 30-40% of the time I get a failure as follows (Always the same test):
{code:java}
TEST testSSEApplication(test.JaxrsTest) <<< ERROR: expected:<[welcome, message]> but was:<[]>
java.lang.AssertionError: expected:<[welcome, message]> but was:<[]>
    at org.junit.Assert.fail(Assert.java:88)
    at org.junit.Assert.failNotEquals(Assert.java:834)
    at org.junit.Assert.assertEquals(Assert.java:118)
    at org.junit.Assert.assertEquals(Assert.java:144)
    at test.JaxrsTest.testSSEApplication(JaxrsTest.java:2327)
    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:498)
    at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
    at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
    at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
    at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
    at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
    at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
    at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
    at junit.framework.JUnit4TestAdapter.run(JUnit4TestAdapter.java:38)
    at junit.framework.TestSuite.runTest(TestSuite.java:252)
    at junit.framework.TestSuite.run(TestSuite.java:247)
    at aQute.junit.Activator.test(Activator.java:351)
    at aQute.junit.Activator.automatic(Activator.java:237)
    at aQute.junit.Activator.run(Activator.java:178)
    at aQute.launcher.Launcher.lambda$serviceChanged$0(Launcher.java:1345)
    at aQute.launcher.Launcher.run(Launcher.java:347)
    at aQute.launcher.Launcher.main(Launcher.java:147)
12:51:16.883 [main] ERROR o.a.a.j.r.w.internal.Whiteboard - Invalid 'osgi.jaxrs.whiteboard.target' filter syntax in CachingServiceReference {
cachedProperties={osgi.jaxrs.whiteboard.target=//}
serviceReference={java.lang.Object}={osgi.jaxrs.resource=true, service.id=337, service.bundleid=12, service.scope=singleton, osgi.jaxrs.whiteboard.target=//}
}
Tests run  : 64
Passed     : 63
Errors     : 1
Failures   : 0
[INFO] 1 Error(s){code}

there's often a variation in the actual result, such as zero or one of "{{welcome, message".}}


> race condition during test execution
> ------------------------------------
>
>                 Key: ARIES-1871
>                 URL: https://issues.apache.org/jira/browse/ARIES-1871
>             Project: Aries
>          Issue Type: Bug
>          Components: jax-rs-whiteboard
>            Reporter: Raymond Augé
>            Priority: Major
>
> When I run the jax-rs-whiteboard tests about 30-40% of the time I get a failure as follows (Always the same test):
> {code:java}
> TEST testSSEApplication(test.JaxrsTest) <<< ERROR: expected:<[welcome, message]> but was:<[]>
> java.lang.AssertionError: expected:<[welcome, message]> but was:<[]>
>     at org.junit.Assert.fail(Assert.java:88)
>     at org.junit.Assert.failNotEquals(Assert.java:834)
>     at org.junit.Assert.assertEquals(Assert.java:118)
>     at org.junit.Assert.assertEquals(Assert.java:144)
>     at test.JaxrsTest.testSSEApplication(JaxrsTest.java:2327)
>     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:498)
>     at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>     at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>     at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>     at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>     at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
>     at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
>     at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>     at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>     at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>     at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>     at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>     at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>     at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>     at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>     at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>     at junit.framework.JUnit4TestAdapter.run(JUnit4TestAdapter.java:38)
>     at junit.framework.TestSuite.runTest(TestSuite.java:252)
>     at junit.framework.TestSuite.run(TestSuite.java:247)
>     at aQute.junit.Activator.test(Activator.java:351)
>     at aQute.junit.Activator.automatic(Activator.java:237)
>     at aQute.junit.Activator.run(Activator.java:178)
>     at aQute.launcher.Launcher.lambda$serviceChanged$0(Launcher.java:1345)
>     at aQute.launcher.Launcher.run(Launcher.java:347)
>     at aQute.launcher.Launcher.main(Launcher.java:147){code}
> {code:java}
> Tests run  : 64
> Passed     : 63
> Errors     : 1
> Failures   : 0
> [INFO] 1 Error(s){code}
> there's often a variation in the actual result, such as zero or one of "{{welcome, message".}}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)