mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-31 03:50:37 +00:00
detect simulated errors, never print them full
This commit is contained in:
committed by
Joonas Koivunen
parent
4feb12548b
commit
c3a027b8b4
@@ -1161,7 +1161,11 @@ impl RemoteTimelineClient {
|
||||
// at info level at first, and only WARN if the operation fails repeatedly.
|
||||
//
|
||||
// (See similar logic for downloads in `download::download_retry`)
|
||||
if retries < FAILED_UPLOAD_WARN_THRESHOLD {
|
||||
|
||||
let is_simulated = cfg!(feature = "testing")
|
||||
&& e.root_cause().is::<remote_storage::SimulatedError>();
|
||||
|
||||
if retries < FAILED_UPLOAD_WARN_THRESHOLD || is_simulated {
|
||||
info!(
|
||||
"failed to perform remote task {}, will retry (attempt {}): {:#}",
|
||||
task.op, retries, e
|
||||
|
||||
Reference in New Issue
Block a user