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:
Alexey Bodanyuk
2026-10-25 15:04:58 +03:00
co-authored by Claude Opus 5.5
parent f9f5ab9e75
commit 046e257f90
2 changed files with 8 additions and 4 deletions
+2 -1
View File
@@ -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")