-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Drop detached partition with a S3 disk is not removing the blob files #55225
Comments
Hi. Maybe, in order to avoid such questions, you could provide a test in PR? It would be much faster to understand. |
Hi @CheSema I did the following test (on the same server).
|
I guess you can you do it with one MergeTree (not replicated) table, just use |
Validated the fix on the latest patch release of the 23.9. |
Describe what's wrong
Dropping detached parts from a table with a storage on S3 is not removing the files from AWS S3.
Does it reproduce on recent release?
Yes, on the 23.9
How to reproduce
CREATE TABLE mytable (...) Engine = ReplicatedOne ... PARTITION BY something SETTINGS disk = 's3_disk'
ALTER TABLE FETCH PARTITION 'my_partition' FROM ''
Expected behavior
On disk, when dropping the detached parts it's saving some disk space and for remote disks, I'll expect the same, i.e removing only the metadata is not enough to me.
Once you have drop the detached partition, you have no longer the information for the remote blobs file so it will generate orphans file on S3.
Error message and/or stacktrace
N/A
Additional context
The text was updated successfully, but these errors were encountered: