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

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
+9 -9
View File
@@ -1,7 +1,7 @@
--- состояние контейнеров до рестарта ---
api Up 39 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)
python3 tests/resilience.py --mode persistence --action-script "scripts/restart.sh" --base-url "http://localhost:8080"
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
@@ -10,9 +10,9 @@ api Up Less than a second (health: starting)
postgres Up Less than a second (health: starting)
valkey Up Less than a second (health: starting)
--- логи postgres о перезапуске ---
postgres-1 | 2026-10-23 14:36:53.364 UTC [1] LOG: starting PostgreSQL 17.7 on aarch64-unknown-linux-musl, compiled by gcc (Alpine 15.2.0) 15.2.0, 64-bit
postgres-1 | 2026-10-23 14:36:53.364 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
postgres-1 | 2026-10-23 14:36:53.364 UTC [1] LOG: listening on IPv6 address "::", port 5432
postgres-1 | 2026-10-23 14:36:53.364 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
postgres-1 | 2026-10-23 14:36:53.366 UTC [29] LOG: database system was shut down at 2026-10-23 14:36:53 UTC
postgres-1 | 2026-10-23 14:36:53.368 UTC [1] LOG: database system is ready to accept connections
postgres-1 | 2026-10-23 20:11:06.649 UTC [1] LOG: starting PostgreSQL 17.7 on aarch64-unknown-linux-musl, compiled by gcc (Alpine 15.2.0) 15.2.0, 64-bit
postgres-1 | 2026-10-23 20:11:06.649 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
postgres-1 | 2026-10-23 20:11:06.649 UTC [1] LOG: listening on IPv6 address "::", port 5432
postgres-1 | 2026-10-23 20:11:06.650 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
postgres-1 | 2026-10-23 20:11:06.652 UTC [29] LOG: database system was shut down at 2026-10-23 20:11:06 UTC
postgres-1 | 2026-10-23 20:11:06.654 UTC [1] LOG: database system is ready to accept connections