[infinispan-issues] [JBoss JIRA] (ISPN-8615) ClusteredLockImplTest.testTryLockWithTimeoutAfterLockWithSmallTimeout random failures

Tristan Tarrant (JIRA) issues at jboss.org
Tue Jan 16 00:54:00 EST 2018


     [ https://issues.jboss.org/browse/ISPN-8615?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tristan Tarrant updated ISPN-8615:
----------------------------------
        Status: Resolved  (was: Pull Request Sent)
    Resolution: Done


> ClusteredLockImplTest.testTryLockWithTimeoutAfterLockWithSmallTimeout random failures
> -------------------------------------------------------------------------------------
>
>                 Key: ISPN-8615
>                 URL: https://issues.jboss.org/browse/ISPN-8615
>             Project: Infinispan
>          Issue Type: Bug
>          Components: Test Suite - Core
>    Affects Versions: 9.2.0.Beta1
>            Reporter: Dan Berindei
>            Assignee: Katia Aresti
>              Labels: testsuite_stability
>             Fix For: 9.2.0.CR1
>
>
> {noformat}
>       java.lang.AssertionError: 
> 	at org.infinispan.lock.impl.lock.ClusteredLockImplTest.testTryLockWithTimeoutAfterLockWithSmallTimeout(ClusteredLockImplTest.java:94)
> {noformat}
> It happens rarely in CI, but I can reproduce it every time if I change the timeout to 100 ms. IMO the difference between {{testTryLockWithTimeoutAfterLockWithSmallTimeout}} and {{testTryLockWithTimeoutAfterLockWithBigTimeout}} should be that the former waits for {{tryLock(smalltimeout, unit)}} to time out before unlocking, and the latter waits for a little time before unlocking and checks that {{tryLock(bigtimeout, unit)}} still succeeds.



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the infinispan-issues mailing list