ЛР 6 — БВТ2302 — Лебедев — на 5

This commit is contained in:
2026-11-22 23:19:26 +03:00
parent 470d9d6f1e
commit 90508e41e9
148 changed files with 19332 additions and 16 deletions
+10
View File
@@ -0,0 +1,10 @@
# 2026-11-21T19:27:17Z commit=n/a host=Linux 6.18.44-fc-v726 x86_64 cpus=2
$ python3 student-tests/test_storage_failures.py
## object storage failures (http://127.0.0.1:8080)
PASS bucket is private outside API: anonymous GET/LIST/PUT denied, API key limited 5.14s anon GET 403; s3-check 6/6 PASS
PASS S3 down: upload/download 503 fast, text messages and readiness keep working 30.19s 503 in 0.03s/0.02s; after start: reads 4.3s, writes 23.5s
PASS interrupted upload: no object and no intent left behind 10.15s objects 2, intents 1 — unchanged
PASS uploads rejected at the very end (truncated PNG) leave no staging object (race regression) 9.18s 30 × 415 at finish(); staging objects 2 → 2
PASS crash between staging PUT and DB COMMIT: intent recorded, janitor removes object after grace 26.63s orphan staging/a0244d5cebee… removed 11.2s after crash (grace 10 s)
summary: 5 passed, 0 failed
exit=0