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

TestMRJobs.testFailingMapper does not assert the correct thing.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 0.23.0, 2.0.0-alpha
    • 0.23.0
    • mrv2, test
    • None
    • Reviewed

    Description

          Assert.assertEquals(TaskCompletionEvent.Status.FAILED, 
              events[0].getStatus().FAILED);
          Assert.assertEquals(TaskCompletionEvent.Status.FAILED, 
              events[1].getStatus().FAILED);
      

      when optimized would be

          Assert.assertEquals(TaskCompletionEvent.Status.FAILED, 
              TaskCompletionEvent.Status.FAILED);
          Assert.assertEquals(TaskCompletionEvent.Status.FAILED, 
              TaskCompletionEvent.Status.FAILED);
      

      obviously these assertions will never fail. If we remove the

      .FAILED

      the asserts no longer pass. This could be because MRApp mocks out the task launcher and never actually launches anything.

      Attachments

        1. MAPREDUCE-2913.patch
          1 kB
          Jonathan Turner Eagles

        Activity

          People

            jeagles Jonathan Turner Eagles
            revans2 Robert Joseph Evans
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: