audit code base for failpoints that should be pausable_failpoint!

Methodology:
1. search for `"pause"` and fix as appropriate
2. search for `=pause` => no further fixes found

Future work: audit all uses of fail::fail_point! / auto-convert them all
to use pausable_failpoint! (or implement our own failpoints library)
This commit is contained in:
Christian Schwarz
2024-03-23 13:57:06 +00:00
parent 145198f5d7
commit 6dca7c6b28
2 changed files with 2 additions and 1 deletions

View File

@@ -210,7 +210,7 @@ impl ControlPlaneGenerationsApi for ControlPlaneClient {
.collect(),
};
fail::fail_point!("control-plane-client-validate");
crate::tenant::pausable_failpoint!("control-plane-client-validate");
let response: ValidateResponse = self.retry_http_forever(&re_attach_path, request).await?;

View File

@@ -144,6 +144,7 @@ macro_rules! pausable_failpoint {
}
};
}
pub(crate) use pausable_failpoint;
pub mod blob_io;
pub mod block_io;