forked from mtusi2026/mtusi2026lab4
fix: одна повторная попытка S3 в том же дедлайне (мёртвые keep-alive после рестарта S3)
Найдено прогоном из чистого clone: после stop/start S3 первое скачивание получало 503 на соединении из пула к старому процессу. Все операции идемпотентны по ключу. Тест TTL при рестарте: 30 с (рестарт Valkey + API с проверкой S3 дольше 12 с). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
f9f5ab9e75
commit
046e257f90
@@ -38,7 +38,8 @@ def test_short_ttl_expires(api, store):
|
||||
|
||||
|
||||
def test_restart_does_not_extend_ttl(api):
|
||||
with api_with_env(SESSION_TTL_SECONDS="12"):
|
||||
# 30 s: a restart of Valkey + both API replicas (readiness now also waits for S3) takes ~12-15 s.
|
||||
with api_with_env(SESSION_TTL_SECONDS="30"):
|
||||
actor = api.register("ttlrestart")
|
||||
session = login_session(api, actor)
|
||||
restart_services("valkey", "api")
|
||||
|
||||
Reference in New Issue
Block a user