Fault injection: where the system goes after a failure
A normal route can only be a sign of a successful implementation.
Learning objectives and first steps2 objectives 2 first fixes
Try to do it after reading
- Explaining fault injections: mechanisms and prerequisites for checking where the system will go after failure
- Positioning the mechanism ' s fault limits with fixed examples
Suggested first
- Limited state machine
- Try again and wait
Issues and mechanisms
A normal route can only be a sign of a successful implementation. The failure injections the active replacement part of the tool response, checking the system ' s behaviour in case of overtime, formatting errors, outdated data and results are unknown. The point is whether it can maintain consistency and give an accurate end, rather than let all malfunctions eventually turn into success.
The test double should retain the tool contract while injecting malfunctions in a clear location. Reading failure allows simulations to be temporarily unavailable; Requests are prepared in a way that distinguishes between pre-execution denials, submissions but lost in response, and repeated requests. Each case is treated differently: re-try, amend parameters, reconcile or stop. Fixed random seed with event serial numbers, ensuring the same failure between versions, which does not allow random difficulty to be compared to pollution.
A concrete example
Take, for example, a three-step process to read the sample book, generate reports and export drafts. The first round returns over time during the reading phase, allowing a re-test and retaining the same mission identification; The second round returns the missing source field during the generation phase and the examiner should reject the source rather than automatically supplement it; A third round of export success but not return to the implementation should be searched for for export records and not create a second directly. The correct results of the three tests may be, respectively, success in recovery, non-conforming terminations and results to be verified.
Borders and checks
The failure injection requires an independent environment and clear side effects segregation that cannot touch real clients or real strategies to test recovery. The tool double does not cover all competing situations and there is still a need to verify durability and co-distribution with access control. (a) Statistics are accompanied by reporting of injection points, expected conversions and actual conversions; Just giving a "cooler" score does not determine exactly what the problem is.
A method of verification
Injection plans should cover both pre- and post-checkpoint locations, where the risk of duplicate action is tested, and recovery of known status is tested. If the test double is always misreported prior to execution, there is no real test of the most difficult case of “externally in effect and not known to the client”.
Check understanding
After the simulator's timeout, does the expected action always try again?
No, it's not. If the first time it may have been effective, a check should be made on the status of the equator or the target. Stop and expose uncertainty when confirmation is not possible.
Why do you have to stick to the same thing?
The troubles are different in different locations. Fixed locations and input allow the old and new versions to be subject to comparable conditions and to repeat specific errors.
Sources and reconciliations
Definitions, methods and interfaces are available.
Figures and calculations are reorganized according to this chapter. Mathematical measurements, framework operations and real business effects are described separately in the body of the text.