curator-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jordan Zimmerman (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CURATOR-243) TestDistributedIdQueue.testRequeuingWithLock is failing
Date Fri, 21 Aug 2015 17:35:46 GMT

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

Jordan Zimmerman resolved CURATOR-243.
--------------------------------------
    Resolution: Fixed

The test was too timing-dependent. Most of the time, the code would be inside of consumeMessage
and the queue's lock would be unavailable causing the remove() method to fail. I added a new
debug method to verify that the item is still queued.

> TestDistributedIdQueue.testRequeuingWithLock is failing
> -------------------------------------------------------
>
>                 Key: CURATOR-243
>                 URL: https://issues.apache.org/jira/browse/CURATOR-243
>             Project: Apache Curator
>          Issue Type: Bug
>            Reporter: Mike Drob
>            Assignee: Jordan Zimmerman
>            Priority: Blocker
>             Fix For: 2.9.0
>
>
> https://builds.apache.org/job/Curator/940/org.apache.curator$curator-recipes/testReport/org.apache.curator.framework.recipes.queue/TestDistributedIdQueue/testRequeuingWithLock/
> {noformat}
> java.lang.AssertionError: expected [1] but found [0]
> 	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.testng.Assert.assertEquals(Assert.java:370)
> 	at org.testng.Assert.assertEquals(Assert.java:380)
> 	at org.apache.curator.framework.recipes.queue.TestDistributedIdQueue.testRequeuingWithLock(TestDistributedIdQueue.java:165)
> {noformat}



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

Mime
View raw message