Github user grkvlt commented on the pull request:
https://github.com/apache/incubator-brooklyn/pull/165#issuecomment-57556432
-
https://builds.apache.org/job/incubator-brooklyn-pull-requests/6/io.brooklyn$brooklyn-policy/testReport/brooklyn.policy.ha/ServiceReplacerTest/
Looks like two out of one hundred test invocations failed, both in the same
way. The test is
`brooklyn.policy.ha.ServiceReplacerTest.testSetsOnFireWhenFailToReplaceMemberManyTimes`
and it's quite difficult to see the results :frog:
The assertion failure is at line 156, checking for the presence of the
failed group member. Test output as follows:
```
2014-10-01 22:37:31,108 INFO TESTNG INVOKING CONFIGURATION: "Surefire
test" - @BeforeMethod brooklyn.policy.ha.ServiceReplacerTest.setUp()
2014-10-01 22:37:31,120 INFO TESTNG PASSED CONFIGURATION: "Surefire test"
- @BeforeMethod brooklyn.policy.ha.ServiceReplacerTest.setUp() finished in 12 ms
2014-10-01 22:37:31,121 INFO TESTNG INVOKING: "Surefire test" -
brooklyn.policy.ha.ServiceReplacerTest.testSetsOnFireWhenFailToReplaceMemberManyTimes()
success: 100%
2014-10-01 22:37:31,157 INFO Resize DynamicClusterImpl{id=jSuVIs6K} from 0
to 1
2014-10-01 22:37:31,174 WARN ServiceReplacer notified; dispatching job for
DynamicClusterImpl{id=jSuVIs6K}
(FailureDescriptor{component=FailingEntityImpl{id=neZsgIJR},
description=simulate failure})
2014-10-01 22:37:31,175 WARN ServiceReplacer acting on failure detected at
FailingEntityImpl{id=neZsgIJR}
(FailureDescriptor{component=FailingEntityImpl{id=neZsgIJR},
description=simulate failure}, child of DynamicClusterImpl{id=jSuVIs6K})
2014-10-01 22:37:31,175 INFO TESTNG FAILED: "Surefire test" -
brooklyn.policy.ha.ServiceReplacerTest.testSetsOnFireWhenFailToReplaceMemberManyTimes()
finished in 53 ms (10 of 100)
java.lang.AssertionError: expected [2] but found [1]
at
brooklyn.policy.ha.ServiceReplacerTest.testSetsOnFireWhenFailToReplaceMember(ServiceReplacerTest.java:156)
at
brooklyn.policy.ha.ServiceReplacerTest.testSetsOnFireWhenFailToReplaceMemberManyTimes(ServiceReplacerTest.java:124)
```
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---