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

Delete the root directory of an object if it is left empty after the object's deletion. #5269

Merged
merged 9 commits into from
Sep 4, 2024

Conversation

teo-tsirpanis
Copy link
Member

SC-53960

When deleting a TileDB object (array or a group) in the local file system, we delete its internal directories like __schema, __meta or __fragments, but the root directory itself is preserved. This PR changes this behavior to also delete the object's root directory, unless the object's deletion did not leave the directory empty, e.g. the user wrote some files there on their own.

This matches the semantics of object storage where directories do not really exist, and naturally extends when deleting groups recursively.


TYPE: BREAKING_BEHAVIOR
DESC: Deleting an array or group will also delete its root directory if it was left empty.

@teo-tsirpanis teo-tsirpanis force-pushed the teo/object-delete-empty-dirs branch from 3f8d1b9 to 1dfc1d0 Compare August 29, 2024 22:15
@teo-tsirpanis teo-tsirpanis marked this pull request as ready for review August 30, 2024 11:44
@teo-tsirpanis teo-tsirpanis requested a review from KiterLuc August 30, 2024 11:44
@KiterLuc KiterLuc merged commit 89c225f into dev Sep 4, 2024
62 checks passed
@KiterLuc KiterLuc deleted the teo/object-delete-empty-dirs branch September 4, 2024 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants