Files
mtusi2026lab3/evidence/failure-valkey.txt
T
2026-10-15 19:44:46 +03:00

13 lines
940 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
python student-tests/dependency_failure.py valkey
stopping valkey (docker compose stop valkey)
/health/ready -> 200 (15 ms): Valkey не критичен, API готов
existing token: GET /users/me -> 200 (0 ms), сессия проверена по PostgreSQL (этот запрос и обнаружил сбой кэша)
POST message -> 201, история читается
register + login new user -> 201
logout -> 204, затем тот же токен -> 401 (отзыв записан в PostgreSQL)
10 x GET /users/me без кэша: max 16 ms (кэш не ждём на каждом запросе)
через 6 с, ещё 10 x GET /users/me: max 31 ms (повторные попытки — в фоне)
starting valkey again
after recovery: прежний токен работает, подтверждённые сообщения на месте
PASS: valkey outage handled without the cache; revoked tokens stay revoked