pub const SIM_FAULT_TIMELINE: &str = "sim:faults";
#[derive(Debug, Clone)]
pub enum SimFaultEvent {
ProcessGracefulShutdown {
ip: String,
grace_period_ms: u64,
},
ProcessForceKill {
ip: String,
},
ProcessRestart {
ip: String,
},
PartitionCreated {
from: String,
to: String,
},
PartitionHealed {
from: String,
to: String,
},
ConnectionCut {
connection_id: u64,
duration_ms: u64,
},
CutRestored {
connection_id: u64,
},
HalfOpenError {
connection_id: u64,
},
SendPartitionCreated {
ip: String,
},
RecvPartitionCreated {
ip: String,
},
RandomClose {
connection_id: u64,
},
PeerCrash {
connection_id: u64,
},
BitFlip {
connection_id: u64,
flip_count: usize,
},
StorageReadFault {
ip: String,
file_id: u64,
},
StorageWriteFault {
ip: String,
file_id: u64,
kind: String,
},
StorageSyncFault {
ip: String,
file_id: u64,
},
StorageCrash {
ip: String,
},
StorageWipe {
ip: String,
},
}