Skip to content

Commit

Permalink
audit code base for failpoints that should be pausable_failpoint!
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
problame committed Mar 23, 2024
1 parent 145198f commit 6dca7c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pageserver/src/control_plane_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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?;

Expand Down
1 change: 1 addition & 0 deletions pageserver/src/tenant.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ macro_rules! pausable_failpoint {
}
};
}
pub(crate) use pausable_failpoint;

pub mod blob_io;
pub mod block_io;
Expand Down

0 comments on commit 6dca7c6

Please sign in to comment.