[ https://issues.apache.org/jira/browse/MAPREDUCE-5935?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14905183#comment-14905183 ]
Jorge Gabriel Siqueira commented on MAPREDUCE-5935: --------------------------------------------------- Is there the possibility to js.fs be initialized after your check? If so, could it cause some problem (because I think it will never be closed)? > 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.1.1, 1.2.0, 1.2.1 > Reporter: Jinghui Wang > Assignee: Jinghui Wang > Attachments: MAPREDUCE-5935.patch > > > 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.3.4#6332)