You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Stefan Egli (JIRA)" <ji...@apache.org> on 2015/11/03 15:39:27 UTC

[jira] [Resolved] (SLING-5244) discovery.impl.cluster.voting.VotingHandlerTest.testConcurrentVotesTwoNodes failed on jenkins

     [ https://issues.apache.org/jira/browse/SLING-5244?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stefan Egli resolved SLING-5244.
--------------------------------
    Resolution: Fixed

fixed the test in rev 1712302:
when the concurrent voting results in one votingHandler to finish analyzeVotings before the other starts, there is no NO vote by the initiator of the voting - so the failing assertion was indeed wrong

> discovery.impl.cluster.voting.VotingHandlerTest.testConcurrentVotesTwoNodes failed on jenkins
> ---------------------------------------------------------------------------------------------
>
>                 Key: SLING-5244
>                 URL: https://issues.apache.org/jira/browse/SLING-5244
>             Project: Sling
>          Issue Type: Bug
>          Components: Extensions
>    Affects Versions: Discovery Impl 1.1.8
>            Reporter: Stefan Egli
>            Assignee: Stefan Egli
>             Fix For: Discovery Impl 1.2.2
>
>         Attachments: VotingHandlerTest.testConcurrentVotesTwoNodes.failure1918.full.txt.gz, VotingHandlerTest.testConcurrentVotesTwoNodes.failure1918.txt, loop-i-3.txt
>
>
> https://builds.apache.org/job/sling-trunk-1.8/org.apache.sling$org.apache.sling.discovery.impl/1918/testReport/junit/org.apache.sling.discovery.impl.cluster.voting/VotingHandlerTest/testConcurrentVotesTwoNodes/
> {code}
> Error Message
> expected:<456> but was:<455>
> Stacktrace
> java.lang.AssertionError: expected:<456> but was:<455>
> 	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.voting.VotingHandlerTest.doTestConcurrentVotes(VotingHandlerTest.java:466)
> 	at org.apache.sling.discovery.impl.cluster.voting.VotingHandlerTest.testConcurrentVotesTwoNodes(VotingHandlerTest.java:322)
> {code}



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