Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-8438

TestContainer.testKillOnNew flaky on trunk

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.2.0
    • Component/s: nodemanager
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Running this test several times (e.g. 30), it fails ~5-10 times.

      Stacktrace: 

      java.lang.AssertionError at org.junit.Assert.fail(Assert.java:86) at org.junit.Assert.assertTrue(Assert.java:41) at org.junit.Assert.assertTrue(Assert.java:52) at org.apache.hadoop.yarn.server.nodemanager.containermanager.container.TestContainer.testKillOnNew(TestContainer.java:594)
      

      TestContainer:594 is the following code in trunk, currently:

      Assert.assertTrue( containerMetrics.finishTime.value() > containerMetrics.startTime .value());
      

      So sometimes the finish time is not greater than the start time.

        Attachments

        1. YARN-8438.001.patch
          6 kB
          Szilard Nemeth
        2. YARN-8438.002.patch
          6 kB
          Szilard Nemeth
        3. YARN-8438.003.patch
          6 kB
          Szilard Nemeth
        4. YARN-8438.004.patch
          6 kB
          Szilard Nemeth
        5. YARN-8438.005.patch
          6 kB
          Szilard Nemeth
        6. YARN-8438.006.patch
          2 kB
          Szilard Nemeth

          Activity

            People

            • Assignee:
              snemeth Szilard Nemeth
              Reporter:
              snemeth Szilard Nemeth
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: