From b65bc511fe6a3cee4d2aab71b2594011fc212600 Mon Sep 17 00:00:00 2001 From: "Raphael S. Carvalho" Date: Fri, 4 May 2018 15:10:47 -0300 Subject: [PATCH] sstables/compaction_manager: log user initiated compaction Sometimes it's hard to figure out from log whether user run major compaction. Fixes #1303. Signed-off-by: Raphael S. Carvalho Message-Id: <20180504181047.20277-1-raphaelsc@scylladb.com> --- sstables/compaction_manager.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sstables/compaction_manager.cc b/sstables/compaction_manager.cc index 4affb4063b..d61d6223fb 100644 --- a/sstables/compaction_manager.cc +++ b/sstables/compaction_manager.cc @@ -239,6 +239,8 @@ future<> compaction_manager::submit_major_compaction(column_family* cf) { auto sstables = get_candidates(*cf); auto compacting = compacting_sstable_registration(this, sstables); + cmlog.info0("User initiated compaction started on behalf of {}.{}", cf->schema()->ks_name(), cf->schema()->cf_name()); + return with_scheduling_group(_scheduling_group, [this, cf, sstables = std::move(sstables)] () mutable { return cf->compact_sstables(sstables::compaction_descriptor(std::move(sstables))); }).then([compacting = std::move(compacting)] {});