forked from mtusi2026/mtusi2026lab5
Добавить версионированный pipeline и проверку идемпотентности.
Трек 2 фиксирует дубль, устаревшую версию, падение до и после записи объекта и replay без второй копии результата. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"hypothesis": "at-least-once plus a versioned effect key keeps the newest committed pipeline",
|
||||
"cases": [
|
||||
{
|
||||
"name": "duplicate",
|
||||
"attachment_id": "31cbcb54-ef7e-4eb2-afb0-80024908df9f",
|
||||
"thumbnail_sha256": "fa0db661078d4da91b241edc8b416de7755db9c9c79ae704a620ca7ad534e308",
|
||||
"variant_rows": 3
|
||||
},
|
||||
{
|
||||
"name": "reorder_and_stale_version",
|
||||
"attachment_id": "31cbcb54-ef7e-4eb2-afb0-80024908df9f",
|
||||
"version1_sha256": "fa0db661078d4da91b241edc8b416de7755db9c9c79ae704a620ca7ad534e308",
|
||||
"version2_sha256": "0ecf36b5c16164108028abe72ac79d5a8671bebb5fd107cc85c5bf1311456985",
|
||||
"applied_pipeline_version": 2,
|
||||
"variant_rows": 6
|
||||
},
|
||||
{
|
||||
"name": "crash_before_s3",
|
||||
"attachment_id": "136bc3ad-78e9-47fa-9ee1-ae552ca3277c",
|
||||
"original_sha256": "99ea7533c441f79cd630d15ce4d58d1ec4e06f6f0efb3b77a5c088305cd1bd75",
|
||||
"variant_rows": 3,
|
||||
"thumbnail_sha256": "fa0db661078d4da91b241edc8b416de7755db9c9c79ae704a620ca7ad534e308"
|
||||
},
|
||||
{
|
||||
"name": "crash_after_s3",
|
||||
"attachment_id": "b4783cc2-3b1b-49a3-bb76-20c2d31e1eda",
|
||||
"original_sha256": "99ea7533c441f79cd630d15ce4d58d1ec4e06f6f0efb3b77a5c088305cd1bd75",
|
||||
"variant_rows": 3,
|
||||
"thumbnail_sha256": "fa0db661078d4da91b241edc8b416de7755db9c9c79ae704a620ca7ad534e308"
|
||||
},
|
||||
{
|
||||
"name": "replay_then_duplicate",
|
||||
"attachment_id": "652b1c3f-b70a-4266-a064-89a820fcfe35",
|
||||
"variant_rows": 3,
|
||||
"job_status": "ready"
|
||||
}
|
||||
],
|
||||
"not_exactly_once": "The broker delivers a message more than once. A crash after the object PUT and before ack runs the S3 write again. The database commit of a pipeline version happens once, and an older version cannot replace the applied one. That is idempotent effect, not exactly-once delivery."
|
||||
}
|
||||
Reference in New Issue
Block a user