[
https://issues.apache.org/jira/browse/SLING-4991?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14733513#comment-14733513
]
Stefan Egli edited comment on SLING-4991 at 9/7/15 10:27 AM:
-------------------------------------------------------------
bq.
org.apache.sling.discovery.impl.cluster.TopologyEventTest.testNonDelayedInitEvent
fixed in http://svn.apache.org/r1701595 and http://svn.apache.org/r1701599 (the
main issue was that min event delays were too tight and it could happen on
apache jenkins that sleeping 3 sec was not done fast enough to accomodate the 5
sec min event delay. that caused the TOPOLOGY_INIT to be sent with
current==true - which caused it to throw an assertion error - which caused the
outer DiscoveryServiceImpl's AsyncEventSender to step back 5 sec due to this
unexpected Error - which caused the subsequent test asserts to fail)
was (Author: egli):
bq.
fixed in http://svn.apache.org/r1701595 and http://svn.apache.org/r1701599 (the
main issue was that min event delays were too tight and it could happen on
apache jenkins that sleeping 3 sec was not done fast enough to accomodate the 5
sec min event delay. that caused the TOPOLOGY_INIT to be sent with
current==true - which caused it to throw an assertion error - which caused the
outer DiscoveryServiceImpl's AsyncEventSender to step back 5 sec due to this
unexpected Error - which caused the subsequent test asserts to fail)
> Semi-random failures in o.a.s.discovery.impl.cluster tests
> ----------------------------------------------------------
>
> Key: SLING-4991
> URL: https://issues.apache.org/jira/browse/SLING-4991
> Project: Sling
> Issue Type: Bug
> Components: Extensions
> Affects Versions: Discovery Impl 1.1.6
> Reporter: Bertrand Delacretaz
> Assignee: Stefan Egli
> Labels: sling-it
>
> A few tests from the org.apache.sling.discovery.impl.cluster package
> regularly (but not always) fail at
> https://builds.apache.org/view/S-Z/view/Sling/job/sling-trunk-1.7/
> *org.apache.sling.discovery.impl.cluster.TopologyEventTest.testNonDelayedInitEvent*
> java.lang.AssertionError: expected:<3> but was:<2>
> at org.junit.Assert.assertEquals(Assert.java:542)
> at
> org.apache.sling.discovery.impl.cluster.TopologyEventTest.testNonDelayedInitEvent(TopologyEventTest.java:307)
> *org.apache.sling.discovery.impl.cluster.ClusterTest.testLeaderDesc*
> java.lang.AssertionError: expected:<2> but was:<1>
> at org.junit.Assert.assertEquals(Assert.java:542)
> at
> org.apache.sling.discovery.impl.cluster.ClusterTest.doTestLeader(ClusterTest.java:189)
> at
> org.apache.sling.discovery.impl.cluster.ClusterTest.testLeaderDesc(ClusterTest.java:152)
> *org.apache.sling.discovery.impl.cluster.ClusterTest.testDuplicateInstance3726*
> java.lang.AssertionError: instance 7c6e1f2c-cad7-465a-824f-8ddb9e53f43d
> expected 3, got: 1
> at org.junit.Assert.fail(Assert.java:88)
> at
> org.apache.sling.discovery.impl.cluster.ClusterTest.assertTopology(ClusterTest.java:762)
> at
> org.apache.sling.discovery.impl.cluster.ClusterTest.assertSameTopology(ClusterTest.java:553)
> at
> org.apache.sling.discovery.impl.cluster.ClusterTest.testDuplicateInstance3726(ClusterTest.java:537)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)