[
https://issues.apache.org/jira/browse/HDFS-15484?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17165917#comment-17165917
]
Steve Loughran commented on HDFS-15484:
---------------------------------------
OK. I'm less worried now it's HDFS only. But you do now have to worry about
hdfs and webhdfs support, and tests for all those troublespots we've discussed
(renames in a loop, etc)
1. the new method should be in an interface which the hdfs and webhdfs clients
can add.
2. have its javadocs define what the api does
3. + test all that in a test suite that both webhdfs and hdfs run against.
As far as implementation goes, the HDFS team will need to look at that detail.
Could you move the patch to being a github PR -it's where we are reviewing all
new patches.
Thanks,
> Add option in enum Rename to suport batch rename
> ------------------------------------------------
>
> Key: HDFS-15484
> URL: https://issues.apache.org/jira/browse/HDFS-15484
> Project: Hadoop HDFS
> Issue Type: Improvement
> Components: dfsclient, namenode, performance
> Reporter: Yang Yun
> Assignee: Yang Yun
> Priority: Minor
> Attachments: HDFS-15484.001.patch, HDFS-15484.new_method.patch
>
>
> Sometime we need rename many files after a task, add a new option in enum
> Rename to support batch rename, which only need one RPC and one lock. For
> example,
> rename(new Path("/dir1/f1::/dir2/f2"), new Path("/dir3/f1::dir4/f4"),
> Rename.BATCH)
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]