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

This commit is contained in:
2026-11-22 23:05:53 +03:00
parent 276dbdad8a
commit fbd04ce238
112 changed files with 9536 additions and 16 deletions
+10
View File
@@ -0,0 +1,10 @@
# 2026-11-21T15:30:34Z 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 3.88s anon GET 403; s3-check 6/6 PASS
PASS S3 down: upload/download 503 fast, text messages and readiness keep working 29.65s 503 in 0.01s/0.01s; after start: reads 4.3s, writes 23.5s
PASS interrupted upload: no object and no intent left behind 7.94s objects 2, intents 1 — unchanged
PASS uploads rejected at the very end (truncated PNG) leave no staging object (race regression) 7.29s 30 × 415 at finish(); staging objects 2 → 2
PASS crash between staging PUT and DB COMMIT: intent recorded, janitor removes object after grace 24.42s orphan staging/e876e2a001f6… removed 13.7s after crash (grace 10 s)
summary: 5 passed, 0 failed
exit=0