Skip to content

Conversation

@felipecrv
Copy link
Contributor

@felipecrv felipecrv commented Dec 8, 2023

Rationale for this change

This copies the behavior implemented by S3FileSystem.

What changes are included in this PR?

An implementation of DeleteRootDirContent that prevents deletion of all blob containers.

Are these changes tested?

N/A.

@felipecrv
Copy link
Contributor Author

@kou @Tom-Newton

Copy link
Member

@kou kou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

We will implement this when we add allow_container_deletion #38999, right?
(Or we may add one more option only for this something like allow_all_containers_deletion?)

@github-actions github-actions bot added awaiting merge Awaiting merge and removed awaiting review Awaiting review labels Dec 8, 2023
@Tom-Newton
Copy link
Contributor

Personally I think it's reasonable to never implement this.

@felipecrv
Copy link
Contributor Author

+1

We will implement this when we add allow_container_deletion #38999, right? (Or we may add one more option only for this something like allow_all_containers_deletion?)

s3fs doesn't infer that it's OK to delete all the buckets from these options and doesn't have an option allowing deleting everything. I think anyone that wants to delete all containers will either do it manually or via the official SDK if the want to do it programmatically.

@felipecrv felipecrv merged commit 47f4d18 into apache:main Dec 10, 2023
@felipecrv felipecrv removed the awaiting merge Awaiting merge label Dec 10, 2023
@felipecrv felipecrv deleted the root_dir_contents branch December 10, 2023 00:16
@conbench-apache-arrow
Copy link

After merging your PR, Conbench analyzed the 6 benchmarking runs that have been run so far on merge-commit 47f4d18.

There were no benchmark performance regressions. 🎉

The full Conbench report has more details. It also includes information about 8 possible false positives for unstable benchmarks that are known to sometimes produce them.

dgreiss pushed a commit to dgreiss/arrow that referenced this pull request Feb 19, 2024
apache#39151)

### Rationale for this change

This copies the behavior implemented by S3FileSystem.

### What changes are included in this PR?

An implementation of `DeleteRootDirContent` that prevents deletion of all blob containers.

### Are these changes tested?

N/A.
* Closes: apache#38702

Authored-by: Felipe Oliveira Carvalho <felipekde@gmail.com>
Signed-off-by: Felipe Oliveira Carvalho <felipekde@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[C++][FS][Azure] Implement DeleteRootDirContents()

3 participants