[
https://issues.apache.org/jira/browse/HADOOP-9769?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Kengo Seki updated HADOOP-9769:
-------------------------------
Attachment: HADOOP-9769.001.patch
I'd like to try this JIRA. Attaching draft patch.
-01:
* redefined o.a.h.fs.Stat as a plain class rather than o.a.h.util.Shell's
subclass.
* reimplemented o.a.h.util.Stat using Java 7's symlink features.
* removed obsolete test cases.
-TODO:
* run on several platforms and debug.
* comparing performance.
* add test cases.
Please comment if my direction is wrong. Thank you.
> Remove org.apache.hadoop.fs.Stat when JDK6 support is dropped
> -------------------------------------------------------------
>
> Key: HADOOP-9769
> URL: https://issues.apache.org/jira/browse/HADOOP-9769
> Project: Hadoop Common
> Issue Type: Improvement
> Affects Versions: 3.0.0
> Reporter: Andrew Wang
> Priority: Minor
> Attachments: HADOOP-9769.001.patch
>
>
> HADOOP-9652 introduces a new class which shells out to stat(1) because of the
> lack of lstat(2) in Java 6. Java 7 has support for reading symlink targets
> via {{Files#readSymbolicLink}}.
> When Hadoop drops Java 6 support, let's use this more portable method instead.
> See:
> http://docs.oracle.com/javase/7/docs/api/java/nio/file/Files.html#readSymbolicLink(java.nio.file.Path)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)