brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aled Sage (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (BROOKLYN-362) Test DslAndRebindYamlTest.testDslAttributeWhenReadyRebindWhenResolved hangs
Date Tue, 11 Oct 2016 22:32:20 GMT

    [ https://issues.apache.org/jira/browse/BROOKLYN-362?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15566821#comment-15566821
] 

Aled Sage commented on BROOKLYN-362:
------------------------------------

I wonder if the underlying cause is https://issues.apache.org/jira/browse/BROOKLYN-356

> Test DslAndRebindYamlTest.testDslAttributeWhenReadyRebindWhenResolved hangs
> ---------------------------------------------------------------------------
>
>                 Key: BROOKLYN-362
>                 URL: https://issues.apache.org/jira/browse/BROOKLYN-362
>             Project: Brooklyn
>          Issue Type: Bug
>            Reporter: Aled Sage
>
> In 0.10.0-SNAPSHOT, the test {{DslAndRebindYamlTest.testDslAttributeWhenReadyRebindWhenResolved}}
can hang. Running `stack <pid>`, it includes the following:
> {noformat}
> "main" prio=5 tid=0x00007fdfe2804000 nid=0x1703 waiting on condition [0x0000700000218000]
>    java.lang.Thread.State: WAITING (parking)
>         at sun.misc.Unsafe.park(Native Method)
>         - parking to wait for  <0x00000007e9724840> (a java.util.concurrent.FutureTask)
>         at java.util.concurrent.locks.LockSupport.park(LockSupport.java:186)
>         at java.util.concurrent.FutureTask.awaitDone(FutureTask.java:425)
>         at java.util.concurrent.FutureTask.get(FutureTask.java:187)
>         at com.google.common.util.concurrent.ForwardingFuture.get(ForwardingFuture.java:63)
>         at org.apache.brooklyn.util.core.task.BasicTask.blockUntilEnded(BasicTask.java:417)
>         at org.apache.brooklyn.util.core.task.BasicTask.blockUntilEnded(BasicTask.java:407)
>         at org.apache.brooklyn.camp.brooklyn.AbstractYamlTest.waitForApplicationTasks(AbstractYamlTest.java:110)
>         at org.apache.brooklyn.camp.brooklyn.DslAndRebindYamlTest.setupAndCheckTestEntityInBasicYamlWith(DslAndRebindYamlTest.java:126)
>         at org.apache.brooklyn.camp.brooklyn.DslAndRebindYamlTest.entityWithAttributeWhenReady(DslAndRebindYamlTest.java:342)
>         at org.apache.brooklyn.camp.brooklyn.DslAndRebindYamlTest.testDslAttributeWhenReadyRebindWhenResolved(DslAndRebindYamlTest.java:171)
>         at sun.reflect.GeneratedMethodAccessor45.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:606)
>         at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84)
>         at org.testng.internal.Invoker.invokeMethod(Invoker.java:714)
>         at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
>         at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)
>         at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
>         at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
>         at org.testng.TestRunner.privateRun(TestRunner.java:767)
>         at org.testng.TestRunner.run(TestRunner.java:617)
>         at org.testng.SuiteRunner.runTest(SuiteRunner.java:348)
>         at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:343)
>         at org.testng.SuiteRunner.privateRun(SuiteRunner.java:305)
>         at org.testng.SuiteRunner.run(SuiteRunner.java:254)
>         at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
>         at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
>         at org.testng.TestNG.runSuitesSequentially(TestNG.java:1224)
>         at org.testng.TestNG.runSuitesLocally(TestNG.java:1149)
>         at org.testng.TestNG.run(TestNG.java:1057)
>         at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:126)
>         at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:152)
>         at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:57)
> "brooklyn-execmanager-SHUzFDxv-3" daemon prio=5 tid=0x00007fdfe758e000 nid=0x6db7 waiting
on condition [0x0000700001961000]
>    java.lang.Thread.State: TIMED_WAITING (parking)
>         at sun.misc.Unsafe.park(Native Method)
>         - parking to wait for  <0x00000007e9724660> (a java.util.concurrent.Semaphore$NonfairSync)
>         at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:226)
>         at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedNanos(AbstractQueuedSynchronizer.java:1033)
>         at java.util.concurrent.locks.AbstractQueuedSynchronizer.tryAcquireSharedNanos(AbstractQueuedSynchronizer.java:1326)
>         at java.util.concurrent.Semaphore.tryAcquire(Semaphore.java:414)
>         at org.apache.brooklyn.core.sensor.DependentConfiguration$WaitInTaskForAttributeReady.call(DependentConfiguration.java:324)
>         at org.apache.brooklyn.util.core.task.BasicExecutionManager$SubmissionCallable.call(BasicExecutionManager.java:519)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>         at java.lang.Thread.run(Thread.java:745)
> {noformat}
> I've seen this test hang in jenkins (when it is building PRs), but I had wrongly thought
this was a memory issue causing our tests to grind to a halt.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message