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

TestContainerResourceUsage fails intermittently

    XMLWordPrintableJSON

Details

    • Test
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.6.0
    • None
    • None
    • Reviewed

    Description

      TestContainerResourceUsage fails sometimes due to the timeout values being low.

      From the test failures -

      ------------------------------------------------------
      Running org.apache.hadoop.yarn.server.resourcemanager.TestContainerResourceUsage
      Tests run: 4, Failures: 1, Errors: 1, Skipped: 0, Time elapsed: 71.264 sec <<< FAILURE! - in org.apache.hadoop.yarn.server.resourcemanager.TestContainerResource
      testUsageWithMultipleContainersAndRMRestart(org.apache.hadoop.yarn.server.resourcemanager.TestContainerResourceUsage)  Time elapsed: 60.032 sec  <<< ERROR!
      java.lang.Exception: test timed out after 60000 milliseconds
              at java.lang.Thread.sleep(Native Method)
              at org.apache.hadoop.yarn.server.resourcemanager.MockRM.waitForState(MockRM.java:209)
              at org.apache.hadoop.yarn.server.resourcemanager.MockRM.waitForState(MockRM.java:198)
              at org.apache.hadoop.yarn.server.resourcemanager.TestContainerResourceUsage.testUsageWithMultipleContainersAndRMRestart(TestContainerResourceUsage.java:
      
      testUsageWithOneAttemptAndOneContainer(org.apache.hadoop.yarn.server.resourcemanager.TestContainerResourceUsage)  Time elapsed: 3.375 sec  <<< FAILURE!
      java.lang.AssertionError: While app is running, memory seconds should be >0 but is 0
              at org.junit.Assert.fail(Assert.java:88)
              at org.junit.Assert.assertTrue(Assert.java:41)
              at org.apache.hadoop.yarn.server.resourcemanager.TestContainerResourceUsage.testUsageWithOneAttemptAndOneContainer(TestContainerResourceUsage.java:108)
      

      Attachments

        1. apache-yarn-2785.2.patch
          3 kB
          Varun Vasudev
        2. apache-yarn-2785.1.patch
          2 kB
          Varun Vasudev
        3. apache-yarn-2785.0.patch
          2 kB
          Varun Vasudev

        Activity

          People

            vvasudev Varun Vasudev
            vvasudev Varun Vasudev
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: