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

TestSleepJob fails in jdk7

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Test
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.23.10, 2.3.0
    • None
    • None
    • Reviewed

    Description

      In jdk7 tests methods in a class do not run in file order, but rather in random order. TestSleepJob hosts are not initialized and a NullPointerException is thrown unless testRandomLocation was run first.

      This can be easily seen by running tests individually.

      org.apache.hadoop.mapred.gridmix.TestSleepJob#testStressSubmit
      org.apache.hadoop.mapred.gridmix.TestSleepJob#testReplaySubmit
      org.apache.hadoop.mapred.gridmix.TestSleepJob#testSerialSubmit
      org.apache.hadoop.mapred.gridmix.TestSleepJob#testMapTasksOnlySleepJobs
      org.apache.hadoop.mapred.gridmix.TestSleepJob#testRandomLocation

      Attachments

        1. MAPREDUCE-5610.patch
          0.9 kB
          Jonathan Turner Eagles
        2. MAPREDUCE-5610.patch
          2 kB
          Jonathan Turner Eagles
        3. MAPREDUCE-5610.patch
          2 kB
          Jonathan Turner Eagles
        4. MAPREDUCE-5610.patch
          2 kB
          Jonathan Turner Eagles

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            jeagles Jonathan Turner Eagles
            jeagles Jonathan Turner Eagles
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment