Failure matrix¶
Тип материала: учебная инженерная матрица. Протоколы — INFERENCE; реализации и fault tests сверяются отдельно.
| Отказ | Что durable | Retry/replay | Recovery и oracle | Подробнее |
|---|---|---|---|---|
| Consumer crash после DB commit | Inbox/effect есть, offset позади | Same ID допустим | One effect, contiguous offset prefix | A |
| Lost PG COMMIT ACK | Исход UNKNOWN клиенту | Same operation ID | Authoritative lookup, payload match | B |
| Flink/Redis recovery skew | Checkpoint и serving cut различаются | INCR может удвоить/пропустить | New generation, complete feature oracle | C |
| Duplicate CH insert | Raw copies в разных parts | Block window не вечный guard | Versioned state query, MV rebuild | D |
| Partial Airflow extraction | Только часть staging | Same interval/generation | Full expected set и manifest gate | E |
| Concurrent ledger debit | Два requests конкурируют | Whole transaction same ID | Funds invariant, balanced postings | F |
| Snapshot connector restart | Частичный snapshot и offsets | Connector/mode-specific | Preserve slot/history, resnapshot при gap | G |
| Kafka rebalance in-flight | Старый request может завершиться | New owner replay | DB identity guard, prefix commit | H |
| Network partition/stale owner | Lease не останавливает старый CPU | Без fencing небезопасен | Resource checks epoch, conflict evidence | Locks |
| Poison schema message | Original source ещё нужен | Не бесконечный retry | Durable quarantine и controlled repair | DLQ |
| Потеря региона | Backup/replica имеют свой cut | Только после fence old writer | Isolated restore, dependency checks, reconciliation | DR |
Для любого incident сохраняйте operation IDs, source offset vector, snapshot/checkpoint/generation, DB durability point, versions и redacted error evidence. Health endpoint не подтверждает recovered correctness.