brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Heneveld (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (BROOKLYN-206) Unreliable test: AbstractControllerTest.testUpdateCalledWhenChildHostnameAndPortChanges
Date Thu, 25 Feb 2016 01:34:19 GMT

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

Alex Heneveld commented on BROOKLYN-206:
----------------------------------------

what the test does is

* mgmt1 has 2 catalog items
* rebinds into mgmt2
* mgmt2 deletes 1 catalog item
* rebinds into mgmt3
* checks mgmt3 has 1 catalog item

it's failing at the last step, mgmt3 has 2 catalog items.  the debug log reveals that there
is a thread probably from mgmt1 writing 2 catalog items AFTER mgmt2 writes the 1 catalog item.
 (search for "checkpointed".)

need to check why mgmt1 is not ending.  i think we're not running with HA so it's probably
a test issue, not shutting it down cleanly.

> Unreliable test: AbstractControllerTest.testUpdateCalledWhenChildHostnameAndPortChanges
> ---------------------------------------------------------------------------------------
>
>                 Key: BROOKLYN-206
>                 URL: https://issues.apache.org/jira/browse/BROOKLYN-206
>             Project: Brooklyn
>          Issue Type: Bug
>            Reporter: Sam Corbett
>
> Stacktrace
> {code}
> java.lang.AssertionError: expected [true] but found [false]
> 	at org.testng.Assert.fail(Assert.java:94)
> 	at org.testng.Assert.failNotEquals(Assert.java:494)
> 	at org.testng.Assert.assertTrue(Assert.java:42)
> 	at org.testng.Assert.assertTrue(Assert.java:52)
> 	at org.apache.brooklyn.entity.proxy.AbstractControllerTest.assertAddressesMatch(AbstractControllerTest.java:308)
> 	at org.apache.brooklyn.entity.proxy.AbstractControllerTest.access$100(AbstractControllerTest.java:67)
> {code}
> Debug log
> {code}
> 2015-12-15 15:30:17,853 INFO  TESTNG INVOKING CONFIGURATION: "Surefire test" - @BeforeMethod
org.apache.brooklyn.entity.proxy.AbstractControllerTest.setUp()
> 2015-12-15 15:30:18,096 INFO  Starting TrackingAbstractControllerImpl{id=Zveoz16x}, obtaining
a new location instance in FixedListMachineProvisioningLocation{id=HsQneYPD, name=FixedListMachineProvisioningLocation:HsQn}
with ports [22, 8000, 8443]
> 2015-12-15 15:30:18,108 INFO  Starting TrackingAbstractControllerImpl{id=Zveoz16x} on
machine SshMachineLocation[SshMachineLocation:TM32:null@/1.1.1.1:22(id=TM32DuVH)]
> 2015-12-15 15:30:18,242 INFO  Added policy ServerPoolMemberTrackerPolicy{name=Controller
targets tracker, running=true} to TrackingAbstractControllerImpl{id=Zveoz16x}
> 2015-12-15 15:30:18,242 INFO  Resetting TrackingAbstractControllerImpl{id=Zveoz16x},
server pool targets {}
> 2015-12-15 15:30:18,244 INFO  Updating TrackingAbstractControllerImpl{id=Zveoz16x}, server
pool targets {}
> 2015-12-15 15:30:18,244 INFO  test controller reconfigure, targets []
> 2015-12-15 15:30:18,252 INFO  TESTNG PASSED CONFIGURATION: "Surefire test" - @BeforeMethod
org.apache.brooklyn.entity.proxy.AbstractControllerTest.setUp() finished in 399 ms
> 2015-12-15 15:30:18,253 INFO  TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.entity.proxy.AbstractControllerTest.testUpdateCalledWhenChildHostnameAndPortChanges()
> 2015-12-15 15:30:33,398 INFO  succeedsEventually exceeded max attempts or timeout - 39
attempts lasting 15001 ms, for RunnableAdapter(org.apache.brooklyn.entity.proxy.AbstractControllerTest$3@186540e1)
> 2015-12-15 15:30:33,398 INFO  failed succeeds-eventually, 39 attempts, 15001ms elapsed
(rethrowing): java.lang.AssertionError: expected [true] but found [false]
> 2015-12-15 15:30:33,401 INFO  TESTNG FAILED: "Surefire test" - org.apache.brooklyn.entity.proxy.AbstractControllerTest.testUpdateCalledWhenChildHostnameAndPortChanges()
finished in 15147 ms
> java.lang.AssertionError: expected [true] but found [false]
> 	at org.apache.brooklyn.entity.proxy.AbstractControllerTest.assertAddressesMatch(AbstractControllerTest.java:308)
> 	at org.apache.brooklyn.entity.proxy.AbstractControllerTest.access$100(AbstractControllerTest.java:67)
> 	at org.apache.brooklyn.entity.proxy.AbstractControllerTest$3.run(AbstractControllerTest.java:300)
> 	at org.apache.brooklyn.test.Asserts$RunnableAdapter.call(Asserts.java:1208)
> 	at org.apache.brooklyn.test.Asserts.succeedsEventually(Asserts.java:870)
> 	at org.apache.brooklyn.test.Asserts.succeedsEventually(Asserts.java:797)
> 	at org.apache.brooklyn.entity.proxy.AbstractControllerTest.assertEventuallyExplicitAddressesMatch(AbstractControllerTest.java:298)
> 	at org.apache.brooklyn.entity.proxy.AbstractControllerTest.testUpdateCalledWhenChildHostnameAndPortChanges(AbstractControllerTest.java:120)
> 2015-12-15 15:30:33,406 INFO  TESTNG INVOKING CONFIGURATION: "Surefire test" - @AfterMethod
org.apache.brooklyn.core.test.BrooklynMgmtUnitTestSupport.tearDown()
> 2015-12-15 15:30:33,417 INFO  Stopping TrackingAbstractControllerImpl{id=Zveoz16x} in
[SshMachineLocation[SshMachineLocation:TM32:null@1.1.1.1/1.1.1.1:22(id=TM32DuVH)]]
> 2015-12-15 15:30:33,460 INFO  TESTNG PASSED CONFIGURATION: "Surefire test" - @AfterMethod
org.apache.brooklyn.core.test.BrooklynMgmtUnitTestSupport.tearDown() finished in 55 ms
> {code}



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

Mime
View raw message