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 "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2026/08/04 07:36:00 UTC

[jira] [Commented] (HADOOP-19801) Allow to skip recursive file deletion for non-empty directory

    [ https://issues.apache.org/jira/browse/HADOOP-19801?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18101626#comment-18101626 ] 

ASF GitHub Bot commented on HADOOP-19801:
-----------------------------------------

deepujain commented on PR #8306:
URL: https://github.com/apache/hadoop/pull/8306#issuecomment-5175969636

   The current branch now only covers the non-empty-directory delete behavior; the generic header work stays in #8417, and the earlier test-structure/config follow-ups are addressed in the current diff. CI is green on the current head. @EnricoMi @steveloughran, when you have a moment, could you please take another look and let me know if anything is still pending from my side?




> Allow to skip recursive file deletion for non-empty directory
> -------------------------------------------------------------
>
>                 Key: HADOOP-19801
>                 URL: https://issues.apache.org/jira/browse/HADOOP-19801
>             Project: Hadoop Common
>          Issue Type: New Feature
>          Components: fs/s3
>            Reporter: Enrico Minack
>            Priority: Major
>              Labels: pull-request-available
>
> A non-empty directory, as well as a directory where its emptiness is unknown, is deleted by listing all contained files (or objects with matching key prefix), then deleting those files (objects) in bulk delete requests, and finally deleting the (then) empty directory itself.
> The recursive deletion of objects is not needed for S3 endpoints that support deleting non-empty directories (or path prefixes).
> For example: The [VAST S3 endpoint supports deleting non-empty directories|https://kb.vastdata.com/documentation/docs/using-trash-folder-for-s3-objects-6] with a single request. Such a feature can only be fully leveraged if {{hadoop-aws}} coupd skip the recursive deletion.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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