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

Flaky test TestTaskAttempt#testReducerCustomResourceTypes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.1.0, 3.0.3
    • client, test
    • None
    • Reviewed

    Description

      The test TestTaskAttempt#testReducerCustomResourceType can occasionally fail with the following error:

      org.apache.hadoop.yarn.exceptions.ResourceNotFoundException: Unknown resource 'a-custom-resource'. Known resources are [name: memory-mb, units: Mi, type: COUNTABLE, value: 0, minimum allocation: 0, maximum allocation: 9223372036854775807, name: vcores, units: , type: COUNTABLE, value: 0, minimum allocation: 0, maximum allocation: 9223372036854775807]
      	at org.apache.hadoop.mapreduce.v2.app.job.impl.TestTaskAttempt.createReduceTaskAttemptImplForTest(TestTaskAttempt.java:434)
      	at org.apache.hadoop.mapreduce.v2.app.job.impl.TestTaskAttempt.testReducerCustomResourceTypes(TestTaskAttempt.java:1535)
      

      The root cause seems to be an interference from previous tests that start instance(s) of FailingAttemptsMRApp or FailingAttemptsDuringAssignedMRApp. When I disabled these tests, testReducerCustomResourceTypes always passed.

      Attachments

        1. MAPREDUCE-7064-001.patch
          6 kB
          Peter Bacsko
        2. MAPREDUCE-7064-002.patch
          6 kB
          Peter Bacsko
        3. MAPREDUCE-7064-003.patch
          6 kB
          Peter Bacsko

        Activity

          People

            pbacsko Peter Bacsko
            pbacsko Peter Bacsko
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: