Definition
A fault-injection §10.28 recovery table is a table with one row per kind of injected fault, a failure caused on purpose, such as a reset during a radio transfer or a power cut between two writes to storage. Each row states where and when the fault was injected, what detected it, how long detection and recovery took, and whether recovery succeeded by a stated criterion, such as the device again answering requests correctly. A row records what happened in its trials; one passing trial gives no rate of success.
Where it fits
Main entry: Fault injection (§10.28).
The fault injection entry explains the technique: cause a fault on purpose, at a chosen moment, to exercise the code that must cope with it. The fault model §1.30 entry explains which real failures an injected fault stands for. Reset injection §8.37 during reception and power-loss injection §8.38 between two persistent writes, writes to storage that keeps its contents without power, are different faults: they interrupt different steps, test different recovery code and belong in different rows.
Each trial has three instants. The fault instant is when the fault is injected. The detection instant is when some part of the system first recognizes the failure. The recovery instant is when a stated witness, an observable sign that service is back, confirms service, for example a correct answer to a test request. They give three intervals: detection latency , recovery duration and fault-to-service time . In an invented trial with s, s and s, these are s, s and s.
If detection works by a timeout §9.34, a waiting limit after which a missing expected message counts as a failure, a 3-second timeout sets most of that 3-second detection latency, so the number describes the configured limit more than the system. In a failure that was not injected, is unknown, and only and can be measured. The witness matters as much as the instants: reconnection of the radio link, completion of a software redeployment and a correctly answered request are different instants, and rows that use different witnesses cannot be compared or averaged.
Reliability, in this setting, is a probability: the chance that recovery succeeds when a fault drawn from the fault model occurs. Dependability engineering calls this conditional probability §15.43 the coverage of the recovery mechanism, a different quantity from test coverage. Estimating it needs repeated, independent trials of the same fault under the same conditions. If each trial fails with probability , then successes in a row have probability . With no failure in trials, the exact one-sided 95% upper confidence bound on is the largest for which successes in a row still have probability at least 0.05, so and . That is 0.95 for , and for , close to the rule of three §18.5.8, which approximates the bound by : .
Rows for different faults that each passed once are not trials of one experiment. They are experiments of one trial each, and each fault has its own failure probability. Treating them as independent and identically distributed §11.5 (IID) trials, as if one shared pass column made them one sample, is wrong.
All data in this entry’s examples are invented.
Limits and common mistakes
Keep failed and timed-out trials in the table. Dropping them leaves only successes and biases every summary toward success; the entry on conditioning on valid trials and selection bias §18.5.7 explains this error. A trial that has not recovered when observation stops has a recovery time known only to exceed the observation window, which is called right censoring §11.28, so it must not be dropped or recorded as the window length.
Passing at the injection points that were tested says nothing about points that were not. A sequence of persistent writes has a crash boundary between every two consecutive writes, and each boundary needs its own test or an argument that covers it, such as a crash consistency §8.4 argument, which shows that an interruption at any point leaves storage in a valid state.
The moment of injection is part of the fault. Faults injected at chosen moments test those moments; an estimate of a rate needs moments sampled from the distribution that the fault model states.
Questions answered
Does one successful fault injection estimate reliability?
No. One successful fault injection shows that recovery is possible for that fault, injected at that moment and judged by that witness. That is an existence result, not an estimate of reliability. Reliability is a probability, the chance that recovery succeeds for a fault drawn from the fault model, and one success in one trial cannot pin it down. If each trial fails with probability , successes in a row have probability , and the 95% upper confidence bound on is . For , that bound is 0.95: at 95% confidence, one success is consistent with a failure probability as high as 0.95.
An estimate needs a fault model that defines which faults and which moments count, many independent repetitions of each fault, every outcome reported including failures and timeouts, and an interval for the success rate. For example, 30 successes in 30 trials bound the failure probability below about 0.095 at 95% confidence. Rows for different faults that each passed once do not add up to such a sample, because each row is a separate experiment with one trial.
Related entries: Fault model (§1.30), Population and sample (§11.1), Deadline versus timeout (§9.34), Zero observed failures and the rule of three (§18.5.8), Censoring (§11.28), Reset injection (§8.37), Power-loss injection (§8.38).