Files
mtusi2026lab4/evidence/consistency.txt
Ilya a97c35fc12 выполнение ЛР4 на 4
- S3: SeaweedFS 4.51 (MinIO-образы недоступны), приватный bucket,
  отдельные ограниченные ключи API, служебные порты закрыты;
  идемпотентный s3-init с проверкой приватности и прогревом записи
- вложения: потоковая загрузка PNG/JPEG, лимиты 10 MiB / 40 Мпикс,
  тип по содержимому, проверка filename, скачивание только участникам
- согласованность PG/S3: pending -> PUT -> ready, компенсация, sweeper
  с grace и dry-run; attachment_ids в сообщениях, FK по чату
- back-pressure на S3 PUT после найденного OOM SeaweedFS
- тесты student-tests, evidence, REPORT.md, DEMO.md
2026-10-28 18:06:07 +03:00

11 lines
783 B
Plaintext

# 2026-10-28T12:51:16Z
$ make test-consistency
PASS S3 down: upload 503 in 0.79s, content 503, metadata 200 (ready), messages 201, ready 200, no pending row left
PASS S3 back (healthy per compose): first download byte-identical after 0.0s
PASS aborted upload (1.1 of 5 MiB sent): no S3 object, no metadata row
injected: orphan object, stale pending row + object, stale pending row without object; waiting 63s
dry-run: {"pending_found": 2, "orphans_found": 1, "objects_scanned": 28, "duration_ms": 186.1}
real: {"pending_deleted": 2, "orphans_deleted": 1, "objects_scanned": 27, "duration_ms": 203.2}
repeat: {"pending_found": 0, "orphans_found": 0}
PASS sweeper: dry-run reports only; real pass removes stale pending rows/objects and orphans; fresh and ready kept; repeat is a no-op