Files
mtusi2026lab5/evidence/pipeline-stand.txt
T
ArtyomandClaude Opus 5.5 a55bc716c4 Record level 3 evidence and fill in the report
Every grade 3 item of lab 5 is proven on a stand raised from empty
volumes at fe26938: the public smoke passes with 202 queued and a real
256x160 JPEG thumbnail; the suite runs its six grade 3 scenarios and
eight invariants green, including worker down with both API replicas,
the relay and the broker restarted while the job stays in the queue,
a redelivered finished job that changes nothing, an S3 outage that
recovers on attempt 2 and five transient failures that end in
retry_exhausted; the stand evidence shows the queued job with
delivery mode 2, the job id as message id and exactly the contract
fields, 409 before ready and a clean SIGTERM of the relay and the
worker; persistence restarts all eight services with their volumes,
failover keeps 134 writes without errors, and the lab 4 scenarios,
S3 checks, upload faults and container policy still pass.

The report describes the clean clone start, the processes and the
source of truth, what is stored at the moment of 202, the outbox and
relay, the claim, fencing and ack order of the worker, the retry
policy, the failure windows, the broker topology and permissions, the
roles table and the mapping of .env.example.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-29 01:31:07 +03:00

34 lines
6.6 KiB
Plaintext

date: 2026-10-28T22:21:36Z
$ docker compose stop -t 10 worker -> 0.5 s, exit code 0
upload -> 202 status=queued id=01a1849a-c0cb-75cb-8da2-32e2345745c8
GET content?variant=original while worker is stopped -> 409
GET content?variant=thumbnail while worker is stopped -> 409
$ rabbitmqctl list_queues -p messenger name messages_ready messages_unacknowledged
name messages_ready messages_unacknowledged
attachments.process 1 0
attachments.process.dlq 0 0
$ rabbitmqadmin get messages -q attachments.process -a ack_requeue_true
+---------------+-------------+-------------+-----------------------+---------------+--------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------+
| payload_bytes | redelivered | exchange | routing_key | message_count | properties | payload | payload_encoding |
+---------------+-------------+-------------+-----------------------+---------------+--------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------+
| 243 | false | attachments | attachment.process.v1 | 0 | app_id: "faststream-0.7.8" | {"type": "attachment.process.v1", "job_id": "01a1849a-c0d7-76df-9824-4555c4e9789b", "attempt": 1, "created_at": "2026-10-28T22:21:36.855941Z", "attachment_id": "01a1849a-c0cb-75cb-8da2-32e2345745c8", "schema_version": 1, "pipeline_version": 1} | string |
| | | | | | content_type: "application/json" | | |
| | | | | | correlation_id: "9a019e51-100d-4c50-ba7f-d75aa580dd18" | | |
| | | | | | delivery_mode: 2 | | |
| | | | | | headers: {} | | |
| | | | | | message_id: "01a1849a-c0d7-76df-9824-4555c4e9789b" | | |
| | | | | | priority: 0 | | |
| | | | | | timestamp: 1793226097 | | |
| | | | | | type: "attachment.process.v1" | | |
| | | | | | | | |
+---------------+-------------+-------------+-----------------------+---------------+--------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------+
payload keys: ['attachment_id', 'attempt', 'created_at', 'job_id', 'pipeline_version', 'schema_version', 'type']
$ docker compose stop -t 10 relay -> 0.5 s, exit code 0
$ docker compose up -d --no-deps --wait relay -> healthy
$ docker compose up -d --no-deps --wait worker -> healthy
after worker start -> status=ready variants=[('thumbnail', 256, 160)]
name messages_ready messages_unacknowledged
attachments.process 0 0
attachments.process.dlq 0 0
PASS: pipeline stand evidence