Обновить доказательства на коде после ревью, сверить с ними отчёт и выделить исправления базы в шаблоне PR
This commit is contained in:
@@ -1,30 +1,37 @@
|
||||
# Dependency outages on the stand (request deadline 5 s, dial/connect 1 s)
|
||||
# date: 2026-10-06T12:59:03Z, commit: 949622e (branch solution/bpi2301-bakulin)
|
||||
# Dependency outages on the stand (request deadline 5 s, dial/connect and host lookup 1 s, readiness budget 1 s)
|
||||
# date: 2026-10-21T12:14:15Z, commit: 7aa86d3 (branch solution/bpi2301-bakulin)
|
||||
# host: Windows 11, Docker Desktop 28.5.1 (4 CPU, 4111327232 bytes RAM), Go go1.27.1, Python 3.13.1
|
||||
|
||||
baseline GET /users/me: 200
|
||||
|
||||
$ docker compose stop valkey
|
||||
{"error":{"code":"unavailable","message":"session store unavailable","request_id":"6dc8e40f8ed60f3d3e32c65da449744e"}}
|
||||
client sees only a safe message:
|
||||
{"error":{"code":"unavailable","message":"session store unavailable","request_id":"dcf58dc8b038da34fbffaa398be2ae19"}}
|
||||
|
||||
-> 503 in 1.223578s
|
||||
POST /auth/sessions: 503 in 1.235624s
|
||||
POST /users (PostgreSQL only): 201
|
||||
{"error":{"code":"unavailable","message":"valkey is unavailable","request_id":"99a17ea0c0423c3142e004f27e09f739"}}
|
||||
|
||||
-> 503
|
||||
api log:
|
||||
{"time":"2026-10-06T13:01:03.639113985Z","level":"ERROR","msg":"request failed","request_id":"99a17ea0c0423c3142e004f27e09f739","error":"valkey is unavailable","cause":"dial tcp: lookup valkey: i/o timeout"}
|
||||
GET /users/me: 503 in 1.029945s, request_id 409bc8d095cd5c0aa8bff3a5a6103336
|
||||
POST /auth/sessions: 503 in 1.067333s, request_id b80c3cf8d77205be7d145d366e3eba7c
|
||||
POST /users (PostgreSQL only): 201
|
||||
GET /health/ready: 503
|
||||
api log, by request_id:
|
||||
409bc8d095cd5c0aa8bff3a5a6103336: session store unavailable <- dial tcp: lookup valkey: i/o timeout
|
||||
b80c3cf8d77205be7d145d366e3eba7c: session store unavailable <- dial tcp: lookup valkey: i/o timeout
|
||||
after docker compose start valkey, same token: 200 (session survived via AOF)
|
||||
|
||||
$ docker compose stop postgres
|
||||
{"error":{"code":"unavailable","message":"database unavailable","request_id":"eeb05d0a51641fb655e0f516f3704b67"}}
|
||||
first request: the pooled connection was closed by the server on shutdown
|
||||
GET /chats: 503 in 0.022848s, request_id 484577a2014613ccc2cc0af7a110147b
|
||||
next requests: a new connection waits for the host lookup, bounded by 1 s
|
||||
GET /chats: 503 in 1.018873s, request_id 68b40ce6917aac8cae5a3a06f53f0d3f
|
||||
GET /chats: 503 in 1.019858s, request_id d085caa2d09226ceebe5b9aad55cbc2b
|
||||
GET /chats: 503 in 1.016325s, request_id e646903eb0912bf1c2b75a3dee3c302e
|
||||
client sees only a safe message:
|
||||
{"error":{"code":"unavailable","message":"database unavailable","request_id":"0dc9f28ccba988caededb452faec06ac"}}
|
||||
|
||||
-> 503 in 0.230062s
|
||||
{"error":{"code":"unavailable","message":"postgres is unavailable","request_id":"1df2b60f6d15c835ed4549601fba01d5"}}
|
||||
|
||||
-> 503
|
||||
api log:
|
||||
{"time":"2026-10-06T13:01:10.362999264Z","level":"ERROR","msg":"request failed","request_id":"1df2b60f6d15c835ed4549601fba01d5","error":"postgres is unavailable","cause":"failed to connect to `user=messenger database=messenger`: hostname resolving error: lookup postgres on 127.0.0.11:53: dial udp 127.0.0.11:53: i/o timeout"}
|
||||
GET /health/ready: 503
|
||||
api log, by request_id:
|
||||
484577a2014613ccc2cc0af7a110147b: select chats: database unavailable <- FATAL: terminating connection due to administrator command (SQLSTATE 57P01)
|
||||
68b40ce6917aac8cae5a3a06f53f0d3f: select chats: database unavailable <- failed to connect to `user=messenger database=messenger`: hostname resolving error: lookup postgres on 127.0.0.11:53: dial udp 127.0.0.11:53: i/o timeout
|
||||
d085caa2d09226ceebe5b9aad55cbc2b: select chats: database unavailable <- failed to connect to `user=messenger database=messenger`: hostname resolving error: lookup postgres on 127.0.0.11:53: dial udp 127.0.0.11:53: i/o timeout
|
||||
e646903eb0912bf1c2b75a3dee3c302e: select chats: database unavailable <- failed to connect to `user=messenger database=messenger`: hostname resolving error: lookup postgres on 127.0.0.11:53: dial udp 127.0.0.11:53: i/o timeout
|
||||
after docker compose start postgres: 200
|
||||
GET /health/ready: 200
|
||||
|
||||
Reference in New Issue
Block a user