hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hanisha Koneru (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (HDFS-12831) HDFS throws FileNotFoundException on getFileBlockLocations(path-to-directory)
Date Fri, 17 Nov 2017 18:39:00 GMT

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

Hanisha Koneru reassigned HDFS-12831:
-------------------------------------

    Assignee: Hanisha Koneru

> 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: 2.8.1
>            Reporter: Steve Loughran
>            Assignee: Hanisha Koneru
>
> 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
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org


Mime
View raw message