hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rakesh R (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-8368) Erasure Coding: DFS opening a non-existent file need to be handled properly
Date Mon, 11 May 2015 09:07:59 GMT

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

Rakesh R commented on HDFS-8368:
--------------------------------

Attached a patch where it checks the {{fileInfo}} existence. Since there are few existing
unit test cases {{TestDistributedFileSystem#testDFSClient}} to verify the behavior, I haven't
included any more. Please review. Thanks!

> Erasure Coding: DFS opening a non-existent file need to be handled properly
> ---------------------------------------------------------------------------
>
>                 Key: HDFS-8368
>                 URL: https://issues.apache.org/jira/browse/HDFS-8368
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>            Reporter: Rakesh R
>            Assignee: Rakesh R
>         Attachments: HDFS-8368-HDFS-7285.00.patch
>
>
> This jira to address bad exceptions when opening a non-existent file. It throws NPE as
shown below:
> {code}
> java.lang.NullPointerException: null
> 	at org.apache.hadoop.hdfs.DFSClient.open(DFSClient.java:1184)
> 	at org.apache.hadoop.hdfs.DistributedFileSystem$3.doCall(DistributedFileSystem.java:307)
> 	at org.apache.hadoop.hdfs.DistributedFileSystem$3.doCall(DistributedFileSystem.java:303)
> 	at org.apache.hadoop.fs.FileSystemLinkResolver.resolve(FileSystemLinkResolver.java:81)
> 	at org.apache.hadoop.hdfs.DistributedFileSystem.open(DistributedFileSystem.java:303)
> 	at org.apache.hadoop.fs.FileSystem.open(FileSystem.java:767)
> 	at org.apache.hadoop.hdfs.TestDistributedFileSystem.testDFSClient(TestDistributedFileSystem.java:359)
> 	at org.apache.hadoop.hdfs.TestDistributedFileSystem.testAllWithNoXmlDefaults(TestDistributedFileSystem.java:666)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message