hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Marquardt (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HADOOP-14769) WASB: delete recursive should not fail if a file is deleted
Date Mon, 14 Aug 2017 06:04:00 GMT

     [ https://issues.apache.org/jira/browse/HADOOP-14769?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Thomas Marquardt updated HADOOP-14769:
--------------------------------------
    Attachment: HADOOP-14769-001.patch

Attaching HADOOP-14769-001.patch.

This fixes recursive directory delete so that it will return false as expected if the directory
does not exist, but it will return true if the directory is successfully deleted even if one
of the path entries existed initially but did not exist when an attempt was made to delete
it.  Two new test cases have been added.  One simulates a file being deleted by an external
agent and the other a child directory.  One of the existing test cases was removed, as it
verified that recursive directory delete failed if a child directory was deleted by an external
agent--this test actually had a bug in it and the child directory did exist.

All tests passing against my tmarql3 account:

 Tests run: 775, Failures: 0, Errors: 0, Skipped: 155


> WASB: delete recursive should not fail if a file is deleted
> -----------------------------------------------------------
>
>                 Key: HADOOP-14769
>                 URL: https://issues.apache.org/jira/browse/HADOOP-14769
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs/azure
>            Reporter: Thomas Marquardt
>            Assignee: Thomas Marquardt
>         Attachments: HADOOP-14769-001.patch
>
>
> FileSystem.delete(Path path) and delete(Path path, boolean recursive) return false if
the path does not exist.  The WASB implementation of recursive delete currently fails if one
of the entries is deleted by an external agent while a recursive delete is in progress.  For
example, if you try to delete all of the files in a directory, which can be a very long process,
and one of the files contained within is deleted by an external agent, the recursive directory
delete operation will fail if it tries to delete that file and discovers that it does not
exist.  This is not desirable.  A recursive directory delete operation should succeeed if
the directory initially exists and when the operation completes, the directory and all of
its entries do not exist.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org


Mime
View raw message