The messages only dumps the last sealed fragment, but it should dump
all the output fragments replacing the exhausted input ones.
Let's print origin of output fragments, so we can differ between
files with compaction and garbage-collection origin.
Signed-off-by: Raphael S. Carvalho <
raph...@scylladb.com>
---
tests: dev. as it's a simple logging change, decided to not spit a new CI run
---
compaction/compaction.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/compaction/compaction.cc b/compaction/compaction.cc
index 3b71f9190..238e95235 100644
--- a/compaction/compaction.cc
+++ b/compaction/compaction.cc
@@ -1020,7 +1020,7 @@ class regular_compaction : public compaction {
_new_unused_sstables.insert(_new_unused_sstables.end(), unused_gc_sstables.begin(), unused_gc_sstables.end());
auto exhausted_ssts = std::vector<shared_sstable>(exhausted, _sstables.end());
- log_debug("Replacing earlier exhausted sstable(s) {} by new sstable {}", formatted_sstables_list(exhausted_ssts, false), sst->get_filename());
+ log_debug("Replacing earlier exhausted sstable(s) {} by new sstable(s) {}", formatted_sstables_list(exhausted_ssts, false), formatted_sstables_list(_new_unused_sstables, true));
_replacer(get_compaction_completion_desc(exhausted_ssts, std::move(_new_unused_sstables)));
_sstables.erase(exhausted, _sstables.end());
_monitor_generator.remove_exhausted_sstables(exhausted_ssts);
--
2.35.1