diff --git a/src/v/storage/segment_appender.cc b/src/v/storage/segment_appender.cc index 616b1096049a7..0713f76066453 100644 --- a/src/v/storage/segment_appender.cc +++ b/src/v/storage/segment_appender.cc @@ -297,6 +297,7 @@ ss::future<> segment_appender::truncate(size_t n) { n <= file_byte_offset(), "Cannot ask to truncate at:{} which is more bytes than we have:{} - {}", file_byte_offset(), + n, *this); return hard_flush() .then([this, n] { return do_truncation(n); }) @@ -663,7 +664,10 @@ bool segment_appender::inflight_write::try_merge( // writes should form a contiguous series of writes and we only check // the last write for merging. vassert( - committed_offset == pco, "in try_merge writes didn't touch: {} {}"); + committed_offset == pco, + "in try_merge writes didn't touch: {} {}", + committed_offset, + pco); // the lhs write cannot be full since then how could the next write // share its chunk: it must use a new chunk