hadoop-mapreduce-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jorge Gabriel Siqueira (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MAPREDUCE-5935) TestMRServerPorts#testTaskTrackerPorts fails with null pointer exception.
Date Wed, 23 Sep 2015 20:25:04 GMT

    [ https://issues.apache.org/jira/browse/MAPREDUCE-5935?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14905188#comment-14905188
] 

Jorge Gabriel Siqueira commented on MAPREDUCE-5935:
---------------------------------------------------

Is this issue still reproducible?

> 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)

Mime
View raw message