fix(logging): clarify recovery and metacache warn messages (#3341)

* fix(logging): clarify recovery and metacache warn messages

Clarify cached gRPC connection eviction messages so they describe automatic reconnection instead of implying a persistent cluster fault.

Retitle metacache resolution logs to remove the misleading decommission_pool prefix and demote routine reconciliation traces to debug while preserving actionable warning paths.

* fix(logging): avoid overpromising reconnect success
This commit is contained in:
houseme
2026-06-11 12:19:22 +08:00
committed by GitHub
parent 7191a3abae
commit a49c6b4c2e
3 changed files with 59 additions and 19 deletions
+4 -1
View File
@@ -208,7 +208,10 @@ pub async fn create_new_channel(addr: &str) -> Result<Channel, Box<dyn Error>> {
/// Evict a connection from the cache after a failure.
/// This should be called when an RPC fails to ensure fresh connections are tried.
pub async fn evict_failed_connection(addr: &str) {
warn!("Evicting failed gRPC connection: {}", addr);
warn!(
addr = %addr,
"Evicting cached gRPC connection after RPC failure; the next request will attempt to reconnect automatically"
);
evict_connection(addr).await;
TLS_GENERATION_CACHE.lock().await.remove(addr);
}