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

Steve Loughran commented on HDFS-4839:
--------------------------------------

If this can be done in Java7 then its not worth doing here, unless a goal is to 
backport behaviour to java6 runtimes.

Irrespective of how this is done, it changes the behaviour of local file:// 
operations when things fail. While this is probably a good thing, it may break 
things. Perhaps it should just be catch+log for now: logging can only be useful.

In which case, this could maybe be implemented with reflection today

> add NativeIO#mkdirs, that provides an error message on failure
> --------------------------------------------------------------
>
>                 Key: HDFS-4839
>                 URL: https://issues.apache.org/jira/browse/HDFS-4839
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>    Affects Versions: 2.1.0-beta
>            Reporter: Colin Patrick McCabe
>            Priority: Minor
>
> It would be nice to have a variant of mkdirs that provided an error message 
> explaining why it failed.  This would make it easier to debug certain failing 
> unit tests that rely on mkdir / mkdirs-- the ChecksumFilesystem tests, for 
> example.



--
This message was sent by Atlassian JIRA
(v6.1.4#6159)

Reply via email to