dump more

Signed-off-by: Alex Chi <chi@neon.tech>
This commit is contained in:
Alex Chi
2023-06-26 14:57:00 -04:00
parent 9ed6ad1d24
commit f86ff5e54b
2 changed files with 5 additions and 9 deletions

View File

@@ -708,13 +708,6 @@ impl LayerMap {
layer.dump(verbose, ctx)?;
}
println!("tiered compaction:");
println!("l0_deltas:");
for layer in &self.l0_delta_layers {
layer.dump(verbose, ctx)?;
}
println!("sorted_runs:");
for (lvl, (tier_id, layer)) in self.sorted_runs.runs.iter().enumerate() {
println!("tier {}", tier_id);

View File

@@ -3792,7 +3792,7 @@ impl Timeline {
let threshold = 8;
assert!(threshold >= 2);
info!("getting tiered compaction task");
info!("getting tiered compaction task, before compaction:");
layers.dump(false, ctx)?;
@@ -4078,7 +4078,6 @@ impl Timeline {
.compact_tiered_phase1(layer_removal_cs.clone(), target_file_size, ctx)
.await? else { return Ok(()); };
println!("new_layers: {:?}", new_layers);
println!("new_tier_at: {:?}", new_tier_at);
println!("removed_tiers: {:?}", removed_tiers);
@@ -4162,6 +4161,10 @@ impl Timeline {
updates.sorted_runs().runs = new_sorted_runs;
updates.flush();
println!("after compaction:");
layers.dump(false, ctx)?;
drop_wlock(guard);
// Also schedule the deletions in remote storage