Skip to content

Commit

Permalink
chore: suppress storage log on back-pressure (#13221)
Browse files Browse the repository at this point in the history
  • Loading branch information
zwang28 authored Nov 2, 2023
1 parent 8b58861 commit f39d0ad
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/meta/src/hummock/manager/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ impl HummockManager {
versioning_guard.write_limit =
calc_new_write_limits(configs, HashMap::new(), &versioning_guard.current_version);
trigger_write_stop_stats(&self.metrics, &versioning_guard.write_limit);
tracing::info!("Hummock stopped write: {:#?}", versioning_guard.write_limit);
tracing::debug!("Hummock stopped write: {:#?}", versioning_guard.write_limit);

Ok(())
}
Expand Down
2 changes: 1 addition & 1 deletion src/meta/src/hummock/manager/versioning.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ impl HummockManager {
if new_write_limits == guard.write_limit {
return false;
}
tracing::info!("Hummock stopped write is updated: {:#?}", new_write_limits);
tracing::debug!("Hummock stopped write is updated: {:#?}", new_write_limits);
trigger_write_stop_stats(&self.metrics, &new_write_limits);
guard.write_limit = new_write_limits;
self.env
Expand Down
6 changes: 3 additions & 3 deletions src/storage/src/hummock/write_limiter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,13 @@ impl WriteLimiter {
Some(reason) => {
if first_block_msg {
first_block_msg = false;
tracing::warn!(
tracing::debug!(
"write to table {} is blocked: {}",
table_id.table_id,
reason,
);
} else {
tracing::warn!(
tracing::debug!(
"write limiter is updated, but write to table {} is still blocked: {}",
table_id.table_id,
reason,
Expand All @@ -99,6 +99,6 @@ impl WriteLimiter {
}
notified.await;
}
tracing::info!("write to table {} is unblocked", table_id.table_id,);
tracing::debug!("write to table {} is unblocked", table_id.table_id,);
}
}

0 comments on commit f39d0ad

Please sign in to comment.