Skip to content

Commit 03ba9ac

Browse files
committed
lsm logs
1 parent 5e9cc3e commit 03ba9ac

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

src/v/lsm/db/compaction_task.cc

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,14 @@ ss::future<ss::lw_shared_ptr<version_edit>> do_run_compaction_task(
147147
// NOLINTNEXTLINE(*branch-clone*)
148148
if (last_seqno_for_key <= state.smallest_snapshot) {
149149
// Hidden by a newer entry for the same user key
150+
vlog(
151+
log.trace,
152+
"dropping hidden entry key={} seqno={} "
153+
"last_seqno_for_key={} smallest_snapshot={}",
154+
key.decode(),
155+
key_seqno,
156+
last_seqno_for_key,
157+
state.smallest_snapshot);
150158
drop = true;
151159
} else if (
152160
key.is_tombstone() && key_seqno <= state.smallest_snapshot
@@ -159,6 +167,15 @@ ss::future<ss::lw_shared_ptr<version_edit>> do_run_compaction_task(
159167
// next few iterations of this loop (by rule (A) above).
160168
// Therefore this deletion marker is obsolete and can be
161169
// dropped.
170+
vlog(
171+
log.trace,
172+
"dropping tombstone key={} seqno={} "
173+
"smallest_snapshot={} input_level={} output_level={}",
174+
key.decode(),
175+
key_seqno,
176+
state.smallest_snapshot,
177+
input_level,
178+
output_level);
162179
drop = true;
163180
}
164181
last_seqno_for_key = key_seqno;

0 commit comments

Comments
 (0)