feat: log when partitions are written due to going over size (#4868)

pull/24376/head
Andrew Lamb 2022-06-15 16:12:43 -04:00 committed by GitHub
parent bf39649d64
commit 6b771375bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -296,6 +296,11 @@ impl LifecycleManager {
let sized_out = s.bytes_written > self.config.partition_size_threshold;
if sized_out {
self.persist_size_counter.inc(1);
info!(sequencer_id=%s.sequencer_id,
partition_id=%s.partition_id,
bytes_written=s.bytes_written,
partition_size_threshold=self.config.partition_size_threshold,
"Partition is over size threshold, persisting");
}
aged_out || sized_out || is_cold