Tone down walreceiver connection timeout errors (#3425)

Closes https://github.com/neondatabase/neon/issues/3342
This commit is contained in:
Kirill Bulatov
2023-01-24 18:03:33 +02:00
committed by GitHub
parent 0c16ad8591
commit 1c3636d848

View File

@@ -77,9 +77,13 @@ pub async fn handle_walreceiver_connection(
info!("DB connection stream finished: {expected_error}");
return Ok(());
}
Err(elapsed) => anyhow::bail!(
"Timed out while waiting {elapsed} for walreceiver connection to open"
),
Err(_) => {
// Timing out to connect to a safekeeper node could happen long time, due to
// many reasons that pageserver cannot control.
// Do not produce an error, but make it visible, that timeouts happen by logging the `event.
info!("Timed out while waiting {connect_timeout:?} for walreceiver connection to open");
return Ok(());
}
}
};