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

hemanthboyina commented on HDFS-12831:
--------------------------------------

[[email protected]] [~hanishakoneru] can you have look into the patch

> HDFS throws FileNotFoundException on getFileBlockLocations(path-to-directory)
> -----------------------------------------------------------------------------
>
>                 Key: HDFS-12831
>                 URL: https://issues.apache.org/jira/browse/HDFS-12831
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: namenode
>    Affects Versions: 3.1.2
>            Reporter: Steve Loughran
>            Assignee: hemanthboyina
>            Priority: Major
>         Attachments: HDFS-12831.001.patch
>
>
> The HDFS implementation of {{getFileBlockLocations(path, offset, len)}} 
> throws an exception if the path references a directory. 
> The base implementation (and all other filesystems) just return an empty 
> array, something implemented in {{getFileBlockLocations(filestatsus, offset, 
> len)}}; something written up in filesystem.md as the correct behaviour. 
> # has been shown to break things: SPARK-14959
> # there's no contract tests for these APIs; shows up in HADOOP-15044. 
> # even if this is considered a wontfix, it should raise something like 
> {{PathIsDirectoryException}} rather than FNFE



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to