lab5: очереди и асинхронная обработка изображений
Durable staging handoff, transactional outbox, at-least-once worker with lease fencing, idempotent versioned pipeline, three variants, operator tooling, contract tests and evidence. Includes the review fixes: reprocess source selection and failure settlement, replay guards, stale-job retirement, PNG structural/raster validation, migration rollback safety and audit events.
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
Dduplicate_before_effect rep=1: PASS
|
||||
Dstale_version_after_v2 rep=1: PASS
|
||||
Dduplicate_before_effect rep=2: PASS
|
||||
Dstale_version_after_v2 rep=2: PASS
|
||||
Dduplicate_before_effect rep=3: PASS
|
||||
Dstale_version_after_v2 rep=3: PASS
|
||||
PASS: track2 6/6 scenarios
|
||||
@@ -0,0 +1,7 @@
|
||||
scenario,rep,pass,detail
|
||||
duplicate_before_effect,1,1,attempts=1
|
||||
stale_version_after_v2,1,1,v1_job=01a18e6e-17b0-763b-b330-7adbcb43a700
|
||||
duplicate_before_effect,2,1,attempts=1
|
||||
stale_version_after_v2,2,1,v1_job=01a18e6e-455e-75f3-857a-750ed660378b
|
||||
duplicate_before_effect,3,1,attempts=1
|
||||
stale_version_after_v2,3,1,v1_job=01a18e6e-74f2-7b4a-842b-c014c626413c
|
||||
|
@@ -0,0 +1,21 @@
|
||||
# Track 2 — versioned pipeline and duplicate/stale delivery
|
||||
|
||||
Hypothesis: with the effect key `(attachment_id, pipeline_version, variant)`,
|
||||
deterministic object keys, a serving version that changes only when all v2
|
||||
variants are committed, and stale-version acknowledgements, an at-least-once
|
||||
pipeline loses no accepted work and never overwrites a newer result with an
|
||||
older duplicate.
|
||||
|
||||
Method: N=3 repetitions. Each repetition creates fresh users/chat and runs:
|
||||
- duplicate pipeline publication while the worker is stopped, followed by recovery;
|
||||
- v1 ready -> explicit reprocess to v2 -> old v1 message delivered after v2 ready.
|
||||
|
||||
Invariants checked: unique variant rows per effect key; ready remains ready;
|
||||
serving pipeline version never regresses; original bytes/checksum unchanged;
|
||||
stale job state is not rewritten.
|
||||
|
||||
Limitations: this harness covers duplicate and stale/reorder delivery. Crash
|
||||
windows (before/after side effect, before/after ack, outbox gap) and lease
|
||||
takeover are covered by student-tests/lab5_faults.py; both are single-node
|
||||
Compose evidence, not a production availability claim. Delivery is
|
||||
at-least-once; exactly-once is not claimed.
|
||||
Reference in New Issue
Block a user