Uploaded image for project: 'Hadoop Map/Reduce'
  1. Hadoop Map/Reduce
  2. MAPREDUCE-5833

TestRMContainerAllocator fails ocassionally

    XMLWordPrintableJSON

Details

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

    Description

      testReportedAppProgress and testReportedAppProgressWithOnlyMaps have race conditions.

      Stacktrace
      
      java.util.NoSuchElementException: null
      	at java.util.Collections$EmptyIterator.next(Collections.java:2998)
      	at org.apache.hadoop.mapreduce.v2.app.TestRMContainerAllocator.testReportedAppProgress(TestRMContainerAllocator.java:535)
      
      Error Message
      
      Task state is not correct (timedout) expected:<RUNNING> but was:<SCHEDULED>
      Stacktrace
      
      junit.framework.AssertionFailedError: Task state is not correct (timedout) expected:<RUNNING> but was:<SCHEDULED>
      	at junit.framework.Assert.fail(Assert.java:50)
      	at junit.framework.Assert.failNotEquals(Assert.java:287)
      	at junit.framework.Assert.assertEquals(Assert.java:67)
      	at org.apache.hadoop.mapreduce.v2.app.MRApp.waitForState(MRApp.java:393)
      	at org.apache.hadoop.mapreduce.v2.app.TestRMContainerAllocator.testReportedAppProgressWithOnlyMaps(TestRMContainerAllocator.java:700)
      

      Attachments

        1. MAPREDUCE-5833-branch-2.patch
          5 kB
          Zhijie Shen
        2. MAPREDUCE-5833.2.patch
          5 kB
          Zhijie Shen
        3. MAPREDUCE-5833.1.patch
          5 kB
          Zhijie Shen

        Activity

          People

            zjshen Zhijie Shen
            zjshen Zhijie Shen
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: