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

When writing an sstable fails the sstable temporary dir is left behind #9522

Closed
bhalevy opened this issue Oct 26, 2021 · 0 comments
Closed
Milestone

Comments

@bhalevy
Copy link
Member

bhalevy commented Oct 26, 2021

This is a cosmetic issue in nature.
If we fail to write a sstable for any reason before it's sealed, we do delete its component files, but we leave behind an empty temporary subdirectory.
This directory is benign and should be cleaned up next time scylla starts, but it would be more elegant if we remove in on the error path in https://github.com/scylladb/scylla/blob/5f513ed28b6048338ce0b1a913df567514927684/sstables/sstables.cc#L2443-L2462

bhalevy added a commit to bhalevy/scylla that referenced this issue Mar 2, 2022
If the sstable is marked for deletion, e.g. when
writing the sstable fails for any reason before it's
sealed, make sure to remove the sstable's temporary
directory, if present, besides the sstables files.

This condition is benign as these empty temp dirs
are removed when scylla starts up, but the do accumulate
and we better remove them too.

Fixes scylladb#9522

Test: unit(dev)

Signed-off-by: Benny Halevy <bhalevy@scylladb.com>
@DoronArazii DoronArazii added this to the 5.1 milestone May 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants