Исправление по замечанию: отзыв сессии выдерживает гонку с наполнением кэша

This commit is contained in:
alenchha
2026-10-23 23:15:21 +03:00
parent 1a60b9cd1f
commit 4ee3cbb4ea
16 changed files with 288 additions and 179 deletions
+6 -6
View File
@@ -1,8 +1,8 @@
=== 1. Останавливаю кэш сессий (valkey) ===
Container mtusi-lab2-valkey-1 Stopping
Container mtusi-lab2-valkey-1 Stopped
api Up 31 seconds (healthy)
postgres Up 37 seconds (unhealthy)
api Up 40 seconds (healthy)
postgres Up 46 seconds (unhealthy)
PASS login_and_read_work_without_cache
PASS unknown_token_is_still_rejected
PASS readiness_ignores_the_cache
@@ -13,7 +13,7 @@ PASS readiness_ignores_the_cache
=== 2. Останавливаю PostgreSQL ===
Container mtusi-lab2-postgres-1 Stopping
Container mtusi-lab2-postgres-1 Stopped
api Up 32 seconds (healthy)
api Up 41 seconds (healthy)
valkey Up Less than a second (health: starting)
PASS readiness_reports_the_outage
PASS writes_fail_with_503
@@ -24,6 +24,6 @@ PASS login_fails_closed
Container mtusi-lab2-postgres-1 Started
=== 3. Состояние восстановлено ===
api Up 38 seconds (healthy)
postgres Up 3 seconds (health: starting)
valkey Up 7 seconds (healthy)
api Up 44 seconds (healthy)
postgres Up Less than a second (health: starting)
valkey Up 3 seconds (health: starting)