Uploaded image for project: 'Oozie'
  1. Oozie
  2. OOZIE-3111 [Umbrella] Fix flaky tests in Oozie
  3. OOZIE-3351

[tests] Flaky test TestMemoryLocks#testWriteLockSameThreadNoWait()

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.0.0
    • 5.1.0
    • tests
    • None

    Description

      The unit test TestMemoryLocks#testWriteLockSameThreadNoWait() is flaky:

      2018-09-21 09:58:36 [INFO] -------------------------------------------------------
      2018-09-21 09:58:36 [INFO]  T E S T S
      2018-09-21 09:58:36 [INFO] -------------------------------------------------------
      2018-09-21 09:59:01 [INFO] Running org.apache.oozie.lock.TestMemoryLocks
      2018-09-21 09:59:01 [ERROR] Tests run: 12, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 24.06 s <<< FAILURE! - in org.apache.oozie.lock.TestMemoryLocks
      2018-09-21 09:59:01 [ERROR] testWriteLockSameThreadNoWait(org.apache.oozie.lock.TestMemoryLocks)  Time elapsed: 0.219 s  <<< FAILURE!
      2018-09-21 09:59:01 junit.framework.ComparisonFailure: expected:<a:[1-L1 a:1-L2 a:1-U1 a:2-N] a:1-U2> but was:<a:[2-N a:1-L1 a:1-L2 a:1-U1] a:1-U2>
      2018-09-21 09:59:01 	at junit.framework.Assert.assertEquals(Assert.java:100)
      2018-09-21 09:59:01 	at junit.framework.Assert.assertEquals(Assert.java:107)
      2018-09-21 09:59:01 	at junit.framework.TestCase.assertEquals(TestCase.java:269)
      2018-09-21 09:59:01 	at org.apache.oozie.lock.TestMemoryLocks.testWriteLockSameThreadNoWait(TestMemoryLocks.java:301)
      ...
      

      Attachments

        1. OOZIE-3351-001.patch
          1.0 kB
          Peter Bacsko

        Activity

          People

            pbacsko Peter Bacsko
            andras.piros Andras Piros
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: