Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GH-38702 [C++]: Implement AzureFileSystem::DeleteRootDirContents #39151

Merged
merged 1 commit into from
Dec 10, 2023

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
32 of 34 checks passed
@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
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.

mapleFU pushed a commit to mapleFU/arrow that referenced this pull request Dec 13, 2023
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 <[email protected]>
Signed-off-by: Felipe Oliveira Carvalho <[email protected]>
clayburn pushed a commit to clayburn/arrow that referenced this pull request Jan 23, 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 <[email protected]>
Signed-off-by: Felipe Oliveira Carvalho <[email protected]>
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 <[email protected]>
Signed-off-by: Felipe Oliveira Carvalho <[email protected]>
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