[
https://issues.apache.org/jira/browse/HADOOP-18679?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17859640#comment-17859640
]
ASF GitHub Bot commented on HADOOP-18679:
-----------------------------------------
steveloughran commented on PR #6726:
URL: https://github.com/apache/hadoop/pull/6726#issuecomment-2186257528
BTW, the "is delete idempotent?" question is a recurrent one; search the
mail lists for history on it, including even HDFS. In a world with parallel
writers, it clearly isn't. But if you are going from paged list -> delete you
are already getting non-atomic listings where race conditions can do odd things
(rename file zzzzzzz to aaaaa and not have the listing find it at all).
You can rebuild S3AFS with `InternalConstants.DELETE_CONSIDERED_IDEMPOTENT`
set to false. Nobody has ever done this *and nobody has ever complained*. Just
avoid using it as part of atomic commit protocols and you'll be fine
> Add API for bulk/paged delete of files and objects
> --------------------------------------------------
>
> Key: HADOOP-18679
> URL: https://issues.apache.org/jira/browse/HADOOP-18679
> Project: Hadoop Common
> Issue Type: Sub-task
> Components: fs/s3
> Affects Versions: 3.3.5
> Reporter: Steve Loughran
> Assignee: Mukund Thakur
> Priority: Major
> Labels: pull-request-available
> Fix For: 3.4.1
>
>
> iceberg and hbase could benefit from being able to give a list of individual
> files to delete -files which may be scattered round the bucket for better
> read peformance.
> Add some new optional interface for an object store which allows a caller to
> submit a list of paths to files to delete, where
> the expectation is
> * if a path is a file: delete
> * if a path is a dir, outcome undefined
> For s3 that'd let us build these into DeleteRequest objects, and submit,
> without any probes first.
> {quote}Cherrypicking
> {quote}
> when cherrypicking, you must include
> * followup commit #6854
> * https://issues.apache.org/jira/browse/HADOOP-19196
> * test fixes HADOOP-19814 and HADOOP-19188
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]