You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brooklyn.apache.org by "Aled Sage (JIRA)" <ji...@apache.org> on 2017/11/13 11:18:00 UTC
[jira] [Created] (BROOKLYN-562)
SoftwareProcessEntityTest.testDoubleStopEntity fails non-deterministically
Aled Sage created BROOKLYN-562:
----------------------------------
Summary: SoftwareProcessEntityTest.testDoubleStopEntity fails non-deterministically
Key: BROOKLYN-562
URL: https://issues.apache.org/jira/browse/BROOKLYN-562
Project: Brooklyn
Issue Type: Bug
Reporter: Aled Sage
Priority: Minor
{{SoftwareProcessEntityTest.testDoubleStopEntity}} fails non-deterministically in 1.0.0-SNAPSHOT:
{noformat}
2017-11-13 09:37:30,374 INFO TESTNG INVOKING CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.entity.software.base.SoftwareProcessEntityTest.setUp()
2017-11-13 09:37:30,374 INFO Added external config supplier named 'brooklyn-demo-sample': org.apache.brooklyn.core.config.external.InPlaceExternalConfigSupplier@3b57dba4
2017-11-13 09:37:30,382 INFO TESTNG PASSED CONFIGURATION: "Surefire test" - @BeforeMethod org.apache.brooklyn.entity.software.base.SoftwareProcessEntityTest.setUp() finished in 8 ms
2017-11-13 09:37:30,382 INFO TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.entity.software.base.SoftwareProcessEntityTest.testDoubleStopEntity()
2017-11-13 09:37:30,386 WARN org.apache.brooklyn.core.mgmt.internal.LocalEntityManager@736b21ee redundant call to start management of entity (and descendants of) Application[rr6h8ftm]; skipping
java.lang.Exception: source of duplicate management of Application[rr6h8ftm]
at org.apache.brooklyn.core.mgmt.internal.LocalEntityManager.manage(LocalEntityManager.java:329) [brooklyn-core-1.0.0-20171113.0927.jar:1.0.0-20171113.0927]
2017-11-13 09:37:30,403 INFO Starting EmptySoftwareProcessImpl{id=xugy50qo22}, obtaining a new location instance in ReleaseLatchLocation{id=l4jlsykjlg, name=ReleaseLatchLocation:l4jl} with ports [22]
2017-11-13 09:37:30,403 INFO Starting EmptySoftwareProcessImpl{id=xugy50qo22} on machine ReleaseLatchLocation{id=l4jlsykjlg, name=ReleaseLatchLocation:l4jl}
2017-11-13 09:37:30,404 WARN Could not resolve on-box directory for EmptySoftwareProcessImpl{id=xugy50qo22} at ReleaseLatchLocation{id=l4jlsykjlg, name=ReleaseLatchLocation:l4jl}; using /home/users/amp/brooklyn-managed-processes, though this may not be accurate at the target (and may fail shortly)
2017-11-13 09:37:30,528 INFO Stopping EmptySoftwareProcessImpl{id=xugy50qo22} in [ReleaseLatchLocation{id=l4jlsykjlg, name=ReleaseLatchLocation:l4jl}]
2017-11-13 09:37:30,532 INFO Stopping EmptySoftwareProcessImpl{id=xugy50qo22} in []
2017-11-13 09:37:30,543 INFO TESTNG FAILED: "Surefire test" - org.apache.brooklyn.entity.software.base.SoftwareProcessEntityTest.testDoubleStopEntity() finished in 154 ms
java.lang.AssertionError: entity=EmptySoftwareProcessImpl{id=xugy50qo22}; attribute=Sensor: service.state (org.apache.brooklyn.core.entity.lifecycle.Lifecycle) expected [stopped] but found [stopping]
at org.apache.brooklyn.test.Asserts.fail(Asserts.java:755)
at org.apache.brooklyn.test.Asserts.failNotEquals(Asserts.java:145)
at org.apache.brooklyn.test.Asserts.assertEquals(Asserts.java:467)
at org.apache.brooklyn.core.entity.EntityAsserts.assertAttributeEquals(EntityAsserts.java:58)
at org.apache.brooklyn.entity.software.base.SoftwareProcessEntityTest.testDoubleStopEntity(SoftwareProcessEntityTest.java:493)
2017-11-13 09:37:30,543 INFO TESTNG INVOKING CONFIGURATION: "Surefire test" - @AfterMethod org.apache.brooklyn.core.test.BrooklynMgmtUnitTestSupport.tearDown()
2017-11-13 09:37:30,545 INFO Stopping EmptySoftwareProcessImpl{id=xugy50qo22} in []
{noformat}
I haven't been able to reproduce this yet locally, and thus not with debug logging either.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)