[ https://issues.apache.org/jira/browse/HDFS-245?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12757406#action_12757406 ]
Eli Collins commented on HDFS-245: ---------------------------------- My mentioned C to say it's possible to write clean code that returns values via normal function call unwinding. Does anyone still think we should be using exceptions for normal control flow? Currently for example checkPermission returns void but throws AccessControlException and UnresolvedPathException. Both represent normal control flow (ie if the user is using access control or symlinks). How about instead we return a value (eg similar to FsResult) to indicate the status of the operation? I realize that will be a sizable diff, it doesn't necessarily have to all go in with symlinks, would be great if we could stage it. Btw I'll post a design doc soon which attempts to capture the jira so far and follow up with a test plan. Want to make sure there's consensus there since the discussion has spread several months and there's still open questions. Thanks, Eli > 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.