hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eli Collins (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HDFS-245) Create symbolic links in HDFS
Date Thu, 17 Sep 2009 21:53:57 GMT

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

Eli Collins commented on HDFS-245:
----------------------------------

+1 for not using exceptions. 

My experience is, and to quote Josh Bloch, "a well-designed API must not force its clients
to use exceptions for ordinary control flow". Resolving links in HDFS paths, regardless of
the component it's implemented in, will definitely be considered normal control flow (as opposed
to eg something that causes an IOException).

The case for exceptions being made in this jira is that the return type of the current interface
doesn't allow for any case besides returning eg a block report, therefore exceptions are a
low-impact way to propagate this new return type. This deficiency in the current API seems
to be a good reason for changing it rather than a motivation for working around it using exceptions.
Whether the resulting patch is too invasive for 21 is a very reasonable concern, but hopefully
orthogonal.

> Create symbolic links in HDFS
> -----------------------------
>
>                 Key: HDFS-245
>                 URL: https://issues.apache.org/jira/browse/HDFS-245
>             Project: Hadoop HDFS
>          Issue Type: New Feature
>            Reporter: dhruba borthakur
>            Assignee: Eli Collins
>         Attachments: 4044_20081030spi.java, HADOOP-4044-strawman.patch, symlink-0.20.0.patch,
symLink1.patch, symLink1.patch, symLink11.patch, symLink12.patch, symLink13.patch, symLink14.patch,
symLink15.txt, symLink15.txt, symLink4.patch, symLink5.patch, symLink6.patch, symLink8.patch,
symLink9.patch
>
>
> HDFS should support symbolic links. A symbolic link is a special type of file that contains
a reference to another file or directory in the form of an absolute or relative path and that
affects pathname resolution. Programs which read or write to files named by a symbolic link
will behave as if operating directly on the target file. However, archiving utilities can
handle symbolic links specially and manipulate them directly.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message