Skip to content

Commit

Permalink
fix(storage): fix compact_fast_runner_bytes unused (#12655)
Browse files Browse the repository at this point in the history
  • Loading branch information
Li0k authored Oct 9, 2023
1 parent fcdc3a1 commit 31cf3f8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
22 changes: 11 additions & 11 deletions src/storage/src/hummock/compactor/compactor_runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -433,17 +433,17 @@ pub async fn compact(
) * compact_task.splits.len() as u64;

tracing::info!(
"Ready to handle compaction group {} task: {} compact_task_statistics {:?} target_level {} compression_algorithm {:?} table_ids {:?} parallelism {} task_memory_capacity_with_parallelism {}, enable fast runner: {}",
compact_task.compaction_group_id,
compact_task.task_id,
compact_task_statistics,
compact_task.target_level,
compact_task.compression_algorithm,
compact_task.existing_table_ids,
parallelism,
task_memory_capacity_with_parallelism,
optimize_by_copy_block
);
"Ready to handle compaction group {} task: {} compact_task_statistics {:?} target_level {} compression_algorithm {:?} table_ids {:?} parallelism {} task_memory_capacity_with_parallelism {}, enable fast runner: {}",
compact_task.compaction_group_id,
compact_task.task_id,
compact_task_statistics,
compact_task.target_level,
compact_task.compression_algorithm,
compact_task.existing_table_ids,
parallelism,
task_memory_capacity_with_parallelism,
optimize_by_copy_block
);

// If the task does not have enough memory, it should cancel the task and let the meta
// reschedule it, so that it does not occupy the compactor's resources.
Expand Down
2 changes: 1 addition & 1 deletion src/storage/src/hummock/compactor/fast_compactor_runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ impl CompactorRunner {
total_read_bytes += sst.file_size;
}
self.metrics
.write_build_l0_bytes
.compact_fast_runner_bytes
.inc_by(skip_raw_block_size);
tracing::info!(
"OPTIMIZATION: skip {} blocks for task-{}, optimize {}% data compression",
Expand Down

0 comments on commit 31cf3f8

Please sign in to comment.