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-dev-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-dev-h...@hadoop.apache.org

Reply via email to