[
https://issues.apache.org/jira/browse/HDFS-12101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17008257#comment-17008257
]
Ayush Saxena commented on HDFS-12101:
-------------------------------------
Thanx [[email protected]] for the report and fix.
Is there are reason for holding it? On a quick look the patch looks good,
Ideally the DFSClient should unwrap PNDE.
If nothing blocking this, I guess post a rebase this should be good to go.
> DFSClient.rename() to unwrap ParentNotDirectoryException; define policy for
> renames under a file
> ------------------------------------------------------------------------------------------------
>
> Key: HDFS-12101
> URL: https://issues.apache.org/jira/browse/HDFS-12101
> Project: Hadoop HDFS
> Issue Type: Improvement
> Components: fs
> Affects Versions: 2.8.1
> Reporter: Steve Loughran
> Assignee: Steve Loughran
> Priority: Minor
> Attachments: HADOOP-14630-001.patch, HADOOP-14630-002.patch
>
>
> HADOOP-14630 adds some contract tests trying to create files or rename files
> *under other files*.
> On a rename under an existing file (or dir under an existing file), HDFS
> fails throwing
> {{org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.fs.ParentNotDirectoryException)}}.
>
> # is throwing an exception here what people agree is the correct behaviour?
> If so, it can go into the filesystem spec, tests set up to expect it. object
> stores tweaked for consistency. If not, HDFS needs a change.
> # At the very least, HDFS should be unwrapping the exception.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]