[
https://issues.apache.org/jira/browse/HDFS-4839?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13663166#comment-13663166
]
Colin Patrick McCabe commented on HDFS-4839:
--------------------------------------------
Ivan, you bring up a valid point. Let's create JIRAs to use the JDK7 APIs when
they become available to us. I can think of at least three cases where JDK7
will allow us to reduce the amount of native code or shell calls:
* symlinks / hardlinks, which JDK7 has support for but JDK6 does not (we
currently run shell code to create them in the HDFS upgrade code)
* mkdir / mkdirs with an appropriate error message
* rename with an error message
That way, in a few years when the Hadoop PMC makes the decision to drop support
for JDK6, we will be able to switch over to a pure Java solution easily. In
the meantime, I think we ought to provide the error message on failure, as a
service to our users (and developers!)
> 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.0.5-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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira