You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Steve Loughran (JIRA)" <ji...@apache.org> on 2016/10/24 14:46:58 UTC
[jira] [Created] (HADOOP-13752) Clarify semantics of
getFileBlockLocations(Path), add contract test
Steve Loughran created HADOOP-13752:
---------------------------------------
Summary: Clarify semantics of getFileBlockLocations(Path), add contract test
Key: HADOOP-13752
URL: https://issues.apache.org/jira/browse/HADOOP-13752
Project: Hadoop Common
Issue Type: Improvement
Components: fs
Affects Versions: 2.7.3
Reporter: Steve Loughran
Priority: Minor
The filesystem spec behaviour of {{getFileBlockLocations(Path)}} and its base implementation raise an FNFE if the path isn't there. But the method's javadocs say " For a nonexistent file or regions, null will be returned."
* look at HDFS to see what it does
* make spec and docs consistent with that
* add contract tests
I actually think HDFS raises FNFE, so it's the javadocs that are wrong. We just need a contract test & fixed up javadocs
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org