Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-4622

Sporadic discovery test failures

    XMLWordPrintableJSON

    Details

      Description

      It seems we have sporadic test failures with the discovery impl, see e.g.
      https://builds.apache.org/job/sling-trunk-1.8/982/org.apache.sling$org.apache.sling.discovery.impl/
      with three test failures:
      org.apache.sling.discovery.impl.cluster.ClusterTest.testLeaderDesc
      org.apache.sling.discovery.impl.cluster.ClusterTest.testDuplicateInstance3726 org.apache.sling.discovery.impl.cluster.TopologyEventTest.testDelayedInitEvent

      In detail:

      java.lang.AssertionError: null
      at org.junit.Assert.fail(Assert.java:86)
      at org.junit.Assert.assertTrue(Assert.java:41)
      at org.junit.Assert.assertFalse(Assert.java:64)
      at org.junit.Assert.assertFalse(Assert.java:74)
      at org.apache.sling.discovery.impl.cluster.ClusterTest.doTestLeader(ClusterTest.java:189)
      at org.apache.sling.discovery.impl.cluster.ClusterTest.testLeaderDesc(ClusterTest.java:147)

      java.lang.AssertionError: could not find a match in the topology with instance=c4ede060-31fd-4f3e-8e0b-a22086db22a1 and clusterViews=3
      at org.junit.Assert.fail(Assert.java:88)
      at org.apache.sling.discovery.impl.cluster.ClusterTest.assertTopology(ClusterTest.java:767)
      at org.apache.sling.discovery.impl.cluster.ClusterTest.assertSameTopology(ClusterTest.java:542)
      at org.apache.sling.discovery.impl.cluster.ClusterTest.testDuplicateInstance3726(ClusterTest.java:526)

      java.lang.AssertionError: expected:<0> but was:<1>
      at org.junit.Assert.fail(Assert.java:88)
      at org.junit.Assert.failNotEquals(Assert.java:743)
      at org.junit.Assert.assertEquals(Assert.java:118)
      at org.junit.Assert.assertEquals(Assert.java:555)
      at org.junit.Assert.assertEquals(Assert.java:542)
      at org.apache.sling.discovery.impl.cluster.TopologyEventTest.testDelayedInitEvent(TopologyEventTest.java:158)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                stefanegli Stefan Egli
                Reporter:
                cziegeler Carsten Ziegeler
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: