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

make TestRawHistoryFile and TestJobHistoryServer more robust

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1.0, 1.2.0
    • 1.1.0
    • test
    • None
    • Reviewed
    • Fixed TestRawHistoryFile and TestJobHistoryServer to not write to /tmp.

    Description

      these unit tests fail if 2 different users run them on the same host as they are using /tmp/input path

      following is the info from the test log

      testcase classname="org.apache.hadoop.mapred.TestJobHistoryServer" name="testHistoryServerStandalone" time="4.572">
          <failure message="/tmp/.input.crc (Permission denied)" type="junit.framework.AssertionFailedError">junit.framework.AssertionFailedError: /tmp/.input.crc (Permission denied)
              at org.apache.hadoop.mapred.TestJobHistoryServer.testHistoryServerStandalone(TestJobHistoryServer.java:113)
      </failure>
      

      Attachments

        1. MAPREDUCE-4673.branch-1.patch
          4 kB
          Arpit Gupta
        2. MAPREDUCE-4673.branch-1.patch
          4 kB
          Arpit Gupta

        Activity

          People

            arpitgupta Arpit Gupta
            arpitgupta Arpit Gupta
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: