Jinghui Wang created MAPREDUCE-5935:
---------------------------------------

             Summary: TestMRServerPorts#testTaskTrackerPorts fails with null 
pointer exception.
                 Key: MAPREDUCE-5935
                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-5935
             Project: Hadoop Map/Reduce
          Issue Type: Bug
          Components: test
    Affects Versions: 1.2.1, 1.2.0, 1.1.1
            Reporter: Jinghui Wang
            Assignee: Jinghui Wang
             Fix For: 1.2.2


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.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to