[
https://issues.apache.org/jira/browse/HDFS-9431?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Kazuho Fujii updated HDFS-9431:
-------------------------------
Attachment: HDFS-9431.002.patch
Hi, [~liuml07]. Thanks for the comment.
I added some assertions to the test. I think this is enough because the test
expects only that the operation does not fail.
{quote}
the trunk code fails the newly added test because pathname is not a valid DFS
filename?
{quote}
Yes. {{getPathName}} method expects a URI with an absolute path.
> DistributedFileSystem#concat fails if the target path is relative.
> ------------------------------------------------------------------
>
> Key: HDFS-9431
> URL: https://issues.apache.org/jira/browse/HDFS-9431
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: hdfs-client
> Reporter: Kazuho Fujii
> Assignee: Kazuho Fujii
> Attachments: HDFS-9431.001.patch, HDFS-9431.002.patch
>
>
> {{DistributedFileSystem#concat}} fails if the target path is relative.
> The method tries to send a relative path to DFSClient at the first call.
> bq. dfs.concat(getPathName(trg), srcsStr);
> But, {{getPathName}} failed. It seems that {{trg}} should be {{absF}} like
> the second call.
> bq. dfs.concat(getPathName(absF), srcsStr);
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)