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:10:24 UTC

[jira] [Updated] (MAPREDUCE-5935) TestMRServerPorts#testTaskTrackerPorts fails with null pointer exception.

     [ https://issues.apache.org/jira/browse/MAPREDUCE-5935?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jinghui Wang updated MAPREDUCE-5935:
------------------------------------

    Attachment: MAPREDUCE-5935.patch

> 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
>             Fix For: 1.2.2
>
>         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.2#6252)