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

TestMRServerPorts#testTaskTrackerPorts fails with null pointer exception.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.1.1, 1.2.0, 1.2.1
    • None
    • test
    • None

    Description

      The exception is caused by a race condition. The test case calls Jobtracker.offerservice in a seperate thread JTRunner, which initializes the class variable FileSystem fs. In the main thread it tries to close fs in the finally block of code, but at that point jt.fs might still not be initialized, thus causing the NPE.

      Attachments

        1. MAPREDUCE-5935.patch
          0.7 kB
          Jinghui Wang

        Activity

          People

            jwang302 Jinghui Wang
            jwang302 Jinghui Wang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: