You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Da Zhou (JIRA)" <ji...@apache.org> on 2018/11/16 21:17:00 UTC
[jira] [Commented] (HADOOP-15940) ABFS: For HNS account, avoid
unnecessary get call when doing Rename
[ https://issues.apache.org/jira/browse/HADOOP-15940?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16690014#comment-16690014 ]
Da Zhou commented on HADOOP-15940:
----------------------------------
Handle three corner cases in driver:
1. rename a file to itself, should return true
2. rename a dir to itself, should return true.
3. move file/dir to same parent folder, return true.
For case 1,2, only a GetFileStatus request is needed to determine the return result.
For case 3, no request is needed.
*All tests passed:*
XNS account: sharedKey
Tests run: 35, Failures: 0, Errors: 0, Skipped: 0
Tests run: 307, Failures: 0, Errors: 0, Skipped: 22
Tests run: 165, Failures: 0, Errors: 0, Skipped: 15
*XNS account: OAUTH*
Tests run: 35, Failures: 0, Errors: 0, Skipped: 0
Tests run: 307, Failures: 0, Errors: 0, Skipped: 23
Tests run: 165, Failures: 0, Errors: 0, Skipped: 21
*non-XNS account: SharedKey:*
Tests run: 35, Failures: 0, Errors: 0, Skipped: 0
Tests run: 307, Failures: 0, Errors: 0, Skipped: 197
Tests run: 165, Failures: 0, Errors: 0, Skipped: 15
> ABFS: For HNS account, avoid unnecessary get call when doing Rename
> -------------------------------------------------------------------
>
> Key: HADOOP-15940
> URL: https://issues.apache.org/jira/browse/HADOOP-15940
> Project: Hadoop Common
> Issue Type: Sub-task
> Components: fs/azure
> Affects Versions: 3.2.0
> Reporter: Da Zhou
> Assignee: Da Zhou
> Priority: Major
> Attachments: HADOOP-15940-001.patch
>
>
> When rename, there is always a GET dst file status call, this is not necessary.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org