forked from mtusi2026/mtusi2026lab5
12 lines
3.4 KiB
Plaintext
12 lines
3.4 KiB
Plaintext
# 2026-11-13T13:57:15Z python3 student-tests/outbox_gap.py --output evidence/outbox-gap.json
|
|
[ 5.47s] A: relay stopped, upload 202 {"attachment_id": "8695d9c8-cdc5-4f28-a17e-b2222d6ee5f4", "outbox": [{"id": 98, "attempt": "1", "available_at": "2026-11-13T13:57:16.395116Z", "created_at": "2026-11-13T13:57:16.395116Z", "published_at": null, "publish_count": 0}], "queue": {"messages": 0, "messages_ready": 0, "messages_unacknowledged": 0, "consumers": 4}}
|
|
[ 12.08s] A: relay started -> ready, same single job {"attachment_id": "8695d9c8-cdc5-4f28-a17e-b2222d6ee5f4", "events": ["enqueued", "claimed", "ready", "staging_deleted"], "outbox": [{"id": 98, "attempt": "1", "available_at": "2026-11-13T13:57:16.395116Z", "created_at": "2026-11-13T13:57:16.395116Z", "published_at": "2026-11-13T13:57:22.711861Z", "publish_count": 1}], "jobs": 1, "invariants": {"variants": ["crop", "optimized", "thumbnail"], "variants_ok": true, "final_objects": 4, "final_objects_ok": true, "staging_left": false, "job_status": "ready", "attempt": 1}}
|
|
[ 21.46s] B: relay crashed between COMMIT and publish -> restarted -> ready {"attachment_id": "73a95268-17ba-4a02-b38b-b4b28ceda56f", "relay_restart_count": [[0], [1]], "events": ["enqueued", "claimed", "ready", "staging_deleted"], "outbox": [{"id": 99, "attempt": "1", "available_at": "2026-11-13T13:57:33.691351Z", "created_at": "2026-11-13T13:57:33.691351Z", "published_at": "2026-11-13T13:57:35.220697Z", "publish_count": 1}], "invariants": {"variants": ["crop", "optimized", "thumbnail"], "variants_ok": true, "final_objects": 4, "final_objects_ok": true, "staging_left": false, "job_status": "ready", "attempt": 1}}
|
|
[ 31.05s] C: published twice (crash before marking) -> duplicate is a no-op {"attachment_id": "b418c3c7-74cf-492a-ab07-8e94202f47e5", "relay_restart_count": [1], "events": ["enqueued", "claimed", "ready", "staging_deleted", "duplicate_ignored"], "outbox": [{"id": 100, "attempt": "1", "available_at": "2026-11-13T13:57:43.223035Z", "created_at": "2026-11-13T13:57:43.223035Z", "published_at": "2026-11-13T13:57:44.693510Z", "publish_count": 1}], "invariants": {"variants": ["crop", "optimized", "thumbnail"], "variants_ok": true, "final_objects": 4, "final_objects_ok": true, "staging_left": false, "job_status": "ready", "attempt": 1}}
|
|
[ 56.68s] D: API died after COMMIT before 202 -> work still completed {"attachment_id": "76c1ed67-220e-4fdd-bb63-7930dbad69be", "client_saw": {"http": 502, "x_instance_id": null, "error_code": "unavailable"}, "events": ["enqueued", "claimed", "ready", "staging_deleted"], "invariants": {"variants": ["crop", "optimized", "thumbnail"], "variants_ok": true, "final_objects": 4, "final_objects_ok": true, "staging_left": false, "job_status": "ready", "attempt": 1}}
|
|
[ 65.79s] E: API died after staging before COMMIT {"attachment_id": "e42703f7-bf99-461f-910c-e03b66ba2b73", "client_saw": {"http": 502, "x_instance_id": null, "error_code": "unavailable"}, "status": "pending", "jobs": 0, "api_get": 404}
|
|
[ 74.22s] E: janitor removed pending row and staging object {"attachment_id": "e42703f7-bf99-461f-910c-e03b66ba2b73", "janitor_dry_run": {"abandoned_pending": 1, "orphan_objects": 0, "deleted_objects": 0, "deleted_rows": 0}, "janitor": {"abandoned_pending": 1, "orphan_objects": 0, "deleted_objects": 1, "deleted_rows": 1, "missing_objects": 0}, "row_gone": true}
|
|
[ 90.61s] relay and api restored to .env configuration
|
|
PASS: outbox closes COMMIT/publish gap; API crash windows handled
|
|
exit=0
|