forked from mtusi2026/mtusi2026lab5
feat: add operator replay, fault injection scenarios and staging cleanup
This commit is contained in:
+1
-2
@@ -21,8 +21,7 @@ let inFlight = 0;
|
||||
function faultHooks(): ProcessorHooks {
|
||||
const crash = (point: string) => async () => {
|
||||
logger.warn(`fault injection: worker killed ${point}`);
|
||||
process.kill(process.pid, 'SIGKILL');
|
||||
await sleep(60000);
|
||||
process.exit(137);
|
||||
};
|
||||
if (FAULT === 'exit-after-store') {
|
||||
return { afterStore: crash('after storing objects, before commit and ack') };
|
||||
|
||||
Reference in New Issue
Block a user