[
https://issues.apache.org/jira/browse/HADOOP-14455?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Brahma Reddy Battula updated HADOOP-14455:
------------------------------------------
Attachment: HADOOP-14455-003.patch
[~vinayrpet] thanks for taking look.
bq.Changing the current behavior straightaway is not correct.
Agreed.
bq.So, a config can be introduced to choose any one among the above, Default
should be SAME_MOUNTPOINT.
bq.Based on the configuration, validation could vary.
done.
[[email protected]] thanks for taking a look.
bq. Not just verifying that the code works, but proving information needed to
debug problems if/when it stops working
Agreed and updated the applicable as you mentioned.
{{ContractTestUtils.assertPathExists()}} and
{{GenericTestUtils.assertExceptionContains()}}
Uploading the patch,kindly review.
> ViewFileSystem#rename should support be supported within same nameservice
> with different mountpoints
> ----------------------------------------------------------------------------------------------------
>
> Key: HADOOP-14455
> URL: https://issues.apache.org/jira/browse/HADOOP-14455
> Project: Hadoop Common
> Issue Type: Improvement
> Components: viewfs
> Reporter: Brahma Reddy Battula
> Assignee: Brahma Reddy Battula
> Attachments: HADOOP-14455-002.patch, HADOOP-14455-003.patch,
> HADOOP-14455.patch
>
>
> *Scenario:*
> || Mount Point || NameService|| Value||
> |/tmp|hacluster|/tmp|
> |/user|hacluster|/user|
> Move file from {{/tmp}} to {{/user}}
> It will fail by throwing the following error
> {noformat}
> Caused by: java.io.IOException: Renames across Mount points not supported
> at
> org.apache.hadoop.fs.viewfs.ViewFileSystem.rename(ViewFileSystem.java:500)
> at org.apache.hadoop.hive.ql.metadata.Hive.moveFile(Hive.java:2692)
> ... 22 more
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]