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

Ignite.countDownLatch() can return null if latch has been already created.

    XMLWordPrintableJSON

Details

    • Test
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • None
    • 1.7
    • None

    Description

      IgnitePartitionedCountDownLatchSelfTest.testLatchMultinode1 test fails on TC sometimes.

      According to stack trace Ignite.countDownLatch(,,,false) can return null if latch has been already created.

      Logs:

      junit.framework.AssertionFailedError: null
          at junit.framework.Assert.fail(Assert.java:55)
          at junit.framework.Assert.assertTrue(Assert.java:22)
          at junit.framework.Assert.assertNotNull(Assert.java:256)
          at junit.framework.Assert.assertNotNull(Assert.java:248)
          at junit.framework.TestCase.assertNotNull(TestCase.java:417)
          at org.apache.ignite.internal.processors.cache.datastructures.IgniteCountDownLatchAbstractSelfTest$3.call(IgniteCountDownLatchAbstractSelfTest.java:306)
          at org.apache.ignite.internal.processors.cache.datastructures.IgniteCountDownLatchAbstractSelfTest$3.call(IgniteCountDownLatchAbstractSelfTest.java:300)
          at org.apache.ignite.testframework.GridTestUtils$5.run(GridTestUtils.java:671)
          at org.apache.ignite.testframework.GridTestUtils$7.call(GridTestUtils.java:967)
          at org.apache.ignite.testframework.GridTestThread.run(GridTestThread.java:86)
      ------- Stdout: -------
      [13:22:46,287][INFO ][main][root] >>> Starting test: testLatchMultinode1 <<<
      [13:22:46,502][INFO ][main][root] >>> Stopping test: testLatchMultinode1 in 215 ms <<<
      ------- Stderr: -------
      [13:22:46,501][ERROR][main][root] Test failed.
      junit.framework.AssertionFailedError
          at junit.framework.Assert.fail(Assert.java:55)
          at junit.framework.Assert.assertTrue(Assert.java:22)
          at junit.framework.Assert.assertNotNull(Assert.java:256)
          at junit.framework.Assert.assertNotNull(Assert.java:248)
          at junit.framework.TestCase.assertNotNull(TestCase.java:417)
          at org.apache.ignite.internal.processors.cache.datastructures.IgniteCountDownLatchAbstractSelfTest$3.call(IgniteCountDownLatchAbstractSelfTest.java:306)
          at org.apache.ignite.internal.processors.cache.datastructures.IgniteCountDownLatchAbstractSelfTest$3.call(IgniteCountDownLatchAbstractSelfTest.java:300)
          at org.apache.ignite.testframework.GridTestUtils$5.run(GridTestUtils.java:671)
          at org.apache.ignite.testframework.GridTestUtils$7.call(GridTestUtils.java:967)
          at org.apache.ignite.testframework.GridTestThread.run(GridTestThread.java:86)
      

      Attachments

        Issue Links

          Activity

            People

              v.pyatkov Vladislav Pyatkov
              ashutak Artem Shutak
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: