Add crash-consistent State Anchor maintenance
This commit is contained in:
parent
5cd0772866
commit
24d7d5b6e0
1 changed files with 1590 additions and 7 deletions
|
|
@ -33,6 +33,7 @@ use crate::runtime::StateAnchorAbsenceObservation;
|
|||
use crate::state_anchor::{
|
||||
StateAnchorCoordinator, StateAnchorCoordinatorError, StateAnchorRecoveryOwner,
|
||||
};
|
||||
use crate::state_maintenance::recover_state_reset;
|
||||
|
||||
const PROCESS_EXIT_TIMEOUT: Duration = Duration::from_secs(5);
|
||||
|
||||
|
|
@ -627,6 +628,7 @@ where
|
|||
Open: FnMut(PidfsProcessIdentityV1) -> io::Result<PidfsRecoveryMatch>,
|
||||
Delete: FnMut(&std::os::fd::OwnedFd, &str) -> Result<(), String>,
|
||||
{
|
||||
recover_state_reset(configuration, store).map_err(|error| error.to_string())?;
|
||||
failpoint(ProductionRecoveryBoundary::Snapshot, GenerationId::new(0))?;
|
||||
let snapshot = store.snapshot().map_err(|error| error.to_string())?;
|
||||
if snapshot.domain.domain_id != configuration.domain_id() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue