Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-3141

IgnitePartitionedLockSelfTest fails on TC

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • data structures
    • None

    Description

      IgnitePartitionedLockSelfTest fails from time to time on TC.

      Example of failed run:
      http://149.202.210.143:8111/viewLog.html?buildId=243004&tab=buildResultsDiv&buildTypeId=IgniteTests_IgniteBinaryObjectsDataStrucutures

      IgnitePartitionedLockSelfTest.testConditionAwaitUninterruptibly. Hang:

      Thread [name="test-runner-#116519%partitioned.IgnitePartitionedLockSelfTest%", id=155625, state=WAITING, blockCnt=0, waitCnt=6]
          Lock [object=o.a.i.i.util.future.GridCompoundFuture@4b9dffc6, ownerName=null, ownerId=-1]
              at sun.misc.Unsafe.park(Native Method)
              at java.util.concurrent.locks.LockSupport.park(LockSupport.java:186)
              at java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:834)
              at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedInterruptibly(AbstractQueuedSynchronizer.java:994)
              at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1303)
              at o.a.i.i.util.future.GridFutureAdapter.get0(GridFutureAdapter.java:159)
              at o.a.i.i.util.future.GridFutureAdapter.get(GridFutureAdapter.java:117)
              at o.a.i.i.processors.cache.datastructures.IgniteLockAbstractSelfTest.testConditionAwaitUninterruptibly(IgniteLockAbstractSelfTest.java:1233)
              at o.a.i.i.processors.cache.datastructures.IgniteLockAbstractSelfTest.testConditionAwaitUninterruptibly(IgniteLockAbstractSelfTest.java:1158)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:606)
              at junit.framework.TestCase.runTest(TestCase.java:176)
              at o.a.i.testframework.junits.GridAbstractTest.runTestInternal(GridAbstractTest.java:1760)
              at o.a.i.testframework.junits.GridAbstractTest.access$000(GridAbstractTest.java:118)
              at o.a.i.testframework.junits.GridAbstractTest$4.run(GridAbstractTest.java:1698)
              at java.lang.Thread.run(Thread.java:745)
      

      IgnitePartitionedLockSelfTest.testConditionInterruptAwait

      junit.framework.AssertionFailedError: null
          at junit.framework.Assert.fail(Assert.java:55)
          at junit.framework.Assert.assertTrue(Assert.java:22)
          at junit.framework.Assert.assertFalse(Assert.java:39)
          at junit.framework.Assert.assertFalse(Assert.java:47)
          at junit.framework.TestCase.assertFalse(TestCase.java:219)
          at org.apache.ignite.internal.processors.cache.datastructures.IgniteLockAbstractSelfTest.testConditionInterruptAwait(IgniteLockAbstractSelfTest.java:1260)
          at org.apache.ignite.internal.processors.cache.datastructures.IgniteLockAbstractSelfTest.testConditionInterruptAwait(IgniteLockAbstractSelfTest.java:1247)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke(Method.java:606)
          at junit.framework.TestCase.runTest(TestCase.java:176)
          at org.apache.ignite.testframework.junits.GridAbstractTest.runTestInternal(GridAbstractTest.java:1760)
          at org.apache.ignite.testframework.junits.GridAbstractTest.access$000(GridAbstractTest.java:118)
          at org.apache.ignite.testframework.junits.GridAbstractTest$4.run(GridAbstractTest.java:1698)
      

      IgnitePartitionedLockSelfTest.testHasConditionQueuedThreads:

      junit.framework.AssertionFailedError: null
          at junit.framework.Assert.fail(Assert.java:55)
          at junit.framework.Assert.assertTrue(Assert.java:22)
          at junit.framework.Assert.assertFalse(Assert.java:39)
          at junit.framework.Assert.assertFalse(Assert.java:47)
          at junit.framework.TestCase.assertFalse(TestCase.java:219)
          at org.apache.ignite.internal.processors.cache.datastructures.IgniteLockAbstractSelfTest.testHasConditionQueuedThreads(IgniteLockAbstractSelfTest.java:1416)
          at org.apache.ignite.internal.processors.cache.datastructures.IgniteLockAbstractSelfTest.testHasConditionQueuedThreads(IgniteLockAbstractSelfTest.java:1403)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke(Method.java:606)
          at junit.framework.TestCase.runTest(TestCase.java:176)
          at org.apache.ignite.testframework.junits.GridAbstractTest.runTestInternal(GridAbstractTest.java:1760)
          at org.apache.ignite.testframework.junits.GridAbstractTest.access$000(GridAbstractTest.java:118)
          at org.apache.ignite.testframework.junits.GridAbstractTest$4.run(GridAbstractTest.java:1698)
          at java.lang.Thread.run(Thread.java:745)
      

      Also several times observed suite hang, looks like thread fall in some infinite loop during interuption, see lots of 'Thread is interrupted while attempting to acquire lock' messages in the log.

      [11:11:08] :		 [org.apache.ignite:ignite-core] [08:11:08,180][INFO ][partitioned.IgnitePartitionedLockSelfTest-2][GridCacheLockImpl] <ignite-atomics-sys-cache> Thread is interrupted while attempting to acquire lock.
      [11:11:08] :		 [org.apache.ignite:ignite-core] [08:11:08,181][INFO ][partitioned.IgnitePartitionedLockSelfTest-2][GridCacheLockImpl] <ignite-atomics-sys-cache> Thread is interrupted while attempting to acquire lock.
      [11:11:08] :		 [org.apache.ignite:ignite-core] [08:11:08,181][INFO ][partitioned.IgnitePartitionedLockSelfTest-2][GridCacheLockImpl] <ignite-atomics-sys-cache> Thread is interrupted while attempting to acquire lock.
      [11:11:08] :		 [org.apache.ignite:ignite-core] [08:11:08,181][INFO ][partitioned.IgnitePartitionedLockSelfTest-2][GridCacheLockImpl] <ignite-atomics-sys-cache> Thread is interrupted while attempting to acquire lock.
      

      http://149.202.210.143:8111/viewLog.html?buildId=243424&buildTypeId=IgniteTests_IgniteDataStrucutures&tab=buildResultsDiv

      I commented out test in the IgniteCacheDataStructuresSelfTestSuite, please return it back when issue is fixed.

      Attachments

        Activity

          People

            yzhdanov Yakov Zhdanov
            sboikov Semen Boikov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: