Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-8615

ClusteredLockImplTest.testTryLockWithTimeoutAfterLockWithSmallTimeout random failures

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

            java.lang.AssertionError: 
      	at org.infinispan.lock.impl.lock.ClusteredLockImplTest.testTryLockWithTimeoutAfterLockWithSmallTimeout(ClusteredLockImplTest.java:94)
      

      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.

              karestig@redhat.com Katia Aresti
              dberinde@redhat.com Dan Berindei (Inactive)
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: