mirror of
https://github.com/scylladb/scylladb.git
synced 2026-06-01 12:36:56 +00:00
sstables: silence atomic deletion cancellation logs during sstable deletion
Those logs are expected during shutdown.
This commit is contained in:
@@ -1858,7 +1858,13 @@ sstable::~sstable() {
|
||||
try {
|
||||
delete_atomically({sstable_to_delete(filename(component_type::TOC), _shared)}).handle_exception(
|
||||
[op = background_jobs().start()] (std::exception_ptr eptr) {
|
||||
sstlog.warn("Exception when deleting sstable file: {}", eptr);
|
||||
try {
|
||||
std::rethrow_exception(eptr);
|
||||
} catch (atomic_deletion_cancelled&) {
|
||||
sstlog.debug("Exception when deleting sstable file: {}", eptr);
|
||||
} catch (...) {
|
||||
sstlog.warn("Exception when deleting sstable file: {}", eptr);
|
||||
}
|
||||
});
|
||||
} catch (...) {
|
||||
sstlog.warn("Exception when deleting sstable file: {}", std::current_exception());
|
||||
|
||||
Reference in New Issue
Block a user