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

dhruba borthakur updated HADOOP-2717:
-------------------------------------

    Attachment: closeNPe.patch

This fix is also part of the bugfix for HADOOP-2713

> NPE while closing file.
> -----------------------
>
>                 Key: HADOOP-2717
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2717
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: dfs
>    Affects Versions: 0.16.0
>            Reporter: Raghu Angadi
>             Fix For: 0.16.0
>
>         Attachments: closeNPe.patch
>
>
> Saw this NPE in one of the hudson builds : 
> {code}
> java.lang.NullPointerException
>       at 
> org.apache.hadoop.dfs.DFSClient$DFSOutputStream.close(DFSClient.java:2277)
>       at 
> org.apache.hadoop.fs.FSDataOutputStream$PositionCache.close(FSDataOutputStream.java:51)
>       at 
> org.apache.hadoop.fs.FSDataOutputStream.close(FSDataOutputStream.java:67)
>       at 
> org.apache.hadoop.dfs.TestCheckpoint.writeFile(TestCheckpoint.java:49)
>       at 
> org.apache.hadoop.dfs.TestCheckpoint.testSecondaryNamenodeError2(TestCheckpoint.java:231)
>       at 
> org.apache.hadoop.dfs.TestCheckpoint.testCheckpoint(TestCheckpoint.java:412)
> {code}
> {code}
>         if (response != null) {
>           response.join(); // line 2277
>         }
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to