[
https://issues.apache.org/jira/browse/BROOKLYN-205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15166340#comment-15166340
]
Alex Heneveld commented on BROOKLYN-205:
----------------------------------------
looks like this might have the same cause as
https://issues.apache.org/jira/browse/BROOKLYN-206 . both are using the member
tracking policy but look somehow like they aren't getting updated.
(note that this test has a lot of warnings, that's expected because it's using
EmtpySoftware nodes to trick the cluster into computing seeds)
> Unpredictable test: CassandraDatacenterTest.testPopulatesInitialSeeds
> ---------------------------------------------------------------------
>
> Key: BROOKLYN-205
> URL: https://issues.apache.org/jira/browse/BROOKLYN-205
> Project: Brooklyn
> Issue Type: Bug
> Reporter: Sam Corbett
>
> Fails occasionally on Jenkins
> Error Message
> {code}
> entity=CassandraDatacenterImpl{id=UodYUdGD}; attribute=Sensor:
> cassandra.cluster.seeds.current (java.util.Set) expected
> [[EmptySoftwareProcessImpl{id=HGZGYMV5},
> EmptySoftwareProcessImpl{id=hwS1biHo}]] but found [[]]
> Stacktrace
> java.lang.AssertionError: entity=CassandraDatacenterImpl{id=UodYUdGD};
> attribute=Sensor: cassandra.cluster.seeds.current (java.util.Set) expected
> [[EmptySoftwareProcessImpl{id=HGZGYMV5},
> EmptySoftwareProcessImpl{id=hwS1biHo}]] but found [[]]
> at org.testng.Assert.fail(Assert.java:94)
> at org.testng.Assert.failNotEquals(Assert.java:494)
> at org.testng.Assert.assertEquals(Assert.java:123)
> at
> org.apache.brooklyn.test.EntityTestUtils.assertAttributeEquals(EntityTestUtils.java:62)
> at
> org.apache.brooklyn.test.EntityTestUtils$1.run(EntityTestUtils.java:78)
> at
> org.apache.brooklyn.test.Asserts$RunnableAdapter.call(Asserts.java:1210)
> at org.apache.brooklyn.test.Asserts.succeedsEventually(Asserts.java:872)
> at org.apache.brooklyn.test.Asserts.succeedsEventually(Asserts.java:799)
> at
> org.apache.brooklyn.test.EntityTestUtils.assertAttributeEqualsEventually(EntityTestUtils.java:75)
> at
> org.apache.brooklyn.test.EntityTestUtils.assertAttributeEqualsEventually(EntityTestUtils.java:70)
> at
> org.apache.brooklyn.entity.nosql.cassandra.CassandraDatacenterTest.testPopulatesInitialSeeds(CassandraDatacenterTest.java:78)
> {code}
> Debug log
> {code}
> 2015-11-24 10:39:33,823 INFO TESTNG INVOKING CONFIGURATION: "Surefire test"
> - @BeforeMethod
> org.apache.brooklyn.entity.nosql.cassandra.CassandraDatacenterTest.setUp()
> SUREFIRE-859: [GC 216016K->22382K(753664K), 0.0465390 secs]
> 2015-11-24 10:39:33,902 INFO TESTNG PASSED CONFIGURATION: "Surefire test" -
> @BeforeMethod
> org.apache.brooklyn.entity.nosql.cassandra.CassandraDatacenterTest.setUp()
> finished in 79 ms
> 2015-11-24 10:39:33,903 INFO TESTNG INVOKING: "Surefire test" -
> org.apache.brooklyn.entity.nosql.cassandra.CassandraDatacenterTest.testPopulatesInitialSeeds()
> 2015-11-24 10:39:33,960 WARN CassandraCluster does not support multiple
> nodes on localhost, due to assumptions Cassandra makes about the use of the
> same port numbers used across the cluster.
> 2015-11-24 10:39:33,984 INFO Resize CassandraDatacenterImpl{id=UodYUdGD}
> from 0 to 2
> 2015-11-24 10:39:34,090 INFO Starting EmptySoftwareProcessImpl{id=HGZGYMV5}
> on machine
> SshMachineLocation[LocalhostMachine:s94V:null@hemera/140.211.11.27:22(id=s94V8ItE)]
> 2015-11-24 10:39:34,093 INFO Starting EmptySoftwareProcessImpl{id=hwS1biHo}
> on machine
> SshMachineLocation[LocalhostMachine:HVLI:null@hemera/140.211.11.27:22(id=HVLIHbfW)]
> 2015-11-24 10:39:34,297 WARN Setting CassandraDatacenterImpl{id=UodYUdGD}
> on-fire due to problems when expected running, up=false, not-up-indicators:
> {cassandra.cluster.nodes=Should have at least one entry}
> 2015-11-24 10:39:34,301 WARN Setting Application[dyuBk4iB] on-fire due to
> problems when expected running, up=false, problems:
> {service-lifecycle-indicators-from-children-and-members=Required entity not
> healthy: CassandraDatacenterImpl{id=UodYUdGD}}
> 2015-11-24 10:40:04,305 INFO succeedsEventually exceeded max attempts or
> timeout - 69 attempts lasting 30000 ms, for
> RunnableAdapter(org.apache.brooklyn.test.EntityTestUtils$1@16e416fe)
> 2015-11-24 10:40:04,306 INFO failed succeeds-eventually, 69 attempts,
> 30001ms elapsed (rethrowing): java.lang.AssertionError:
> entity=CassandraDatacenterImpl{id=UodYUdGD}; attribute=Sensor:
> cassandra.cluster.seeds.current (java.util.Set) expected
> [[EmptySoftwareProcessImpl{id=HGZGYMV5},
> EmptySoftwareProcessImpl{id=hwS1biHo}]] but found [[]]
> 2015-11-24 10:40:04,307 INFO TESTNG FAILED: "Surefire test" -
> org.apache.brooklyn.entity.nosql.cassandra.CassandraDatacenterTest.testPopulatesInitialSeeds()
> finished in 30404 ms
> java.lang.AssertionError: entity=CassandraDatacenterImpl{id=UodYUdGD};
> attribute=Sensor: cassandra.cluster.seeds.current (java.util.Set) expected
> [[EmptySoftwareProcessImpl{id=HGZGYMV5},
> EmptySoftwareProcessImpl{id=hwS1biHo}]] but found [[]]
> at
> org.apache.brooklyn.test.EntityTestUtils.assertAttributeEquals(EntityTestUtils.java:62)
> at
> org.apache.brooklyn.test.EntityTestUtils$1.run(EntityTestUtils.java:78)
> at
> org.apache.brooklyn.test.Asserts$RunnableAdapter.call(Asserts.java:1210)
> at org.apache.brooklyn.test.Asserts.succeedsEventually(Asserts.java:872)
> at org.apache.brooklyn.test.Asserts.succeedsEventually(Asserts.java:799)
> at
> org.apache.brooklyn.test.EntityTestUtils.assertAttributeEqualsEventually(EntityTestUtils.java:75)
> at
> org.apache.brooklyn.test.EntityTestUtils.assertAttributeEqualsEventually(EntityTestUtils.java:70)
> at
> org.apache.brooklyn.entity.nosql.cassandra.CassandraDatacenterTest.testPopulatesInitialSeeds(CassandraDatacenterTest.java:78)
> 2015-11-24 10:40:04,318 INFO TESTNG INVOKING CONFIGURATION: "Surefire test"
> - @AfterMethod
> org.apache.brooklyn.core.test.BrooklynMgmtUnitTestSupport.tearDown()
> 2015-11-24 10:40:04,334 INFO Stopping EmptySoftwareProcessImpl{id=hwS1biHo}
> in [LocalhostMachineProvisioningLocation{id=vJFaqTsy,
> name=LocalhostMachineProvisioningLocation:vJFa},
> SshMachineLocation[LocalhostMachine:HVLI:null@hemera/140.211.11.27:22(id=HVLIHbfW)]]
> 2015-11-24 10:40:04,335 INFO Stopping EmptySoftwareProcessImpl{id=HGZGYMV5}
> in [LocalhostMachineProvisioningLocation{id=vJFaqTsy,
> name=LocalhostMachineProvisioningLocation:vJFa},
> SshMachineLocation[LocalhostMachine:s94V:null@hemera/140.211.11.27:22(id=s94V8ItE)]]
> 2015-11-24 10:40:04,380 INFO TESTNG PASSED CONFIGURATION: "Surefire test" -
> @AfterMethod
> org.apache.brooklyn.core.test.BrooklynMgmtUnitTestSupport.tearDown() finished
> in 62 ms
> {code}
> The logs confuse me a bit - the logs say "failed succeeds-eventually, 69
> attempts, 30001ms elapsed" but the timestamps encompass less than a second.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)