You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-issues@hadoop.apache.org by "Jinghui Wang (JIRA)" <ji...@apache.org> on 2014/06/20 03:08:25 UTC
[jira] [Created] (MAPREDUCE-5935)
TestMRServerPorts#testTaskTrackerPorts fails with null pointer exception.
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)