Files
mtusi2026lab3/evidence/faults.txt
T
ArtyomandClaude Opus 5.5 a9aab2727f Record level 4 evidence and extend the report
Evidence from a freshly recreated stand at the current code: the four
detection cases with their declared maxima, failover-each for both
replicas under k6 at 100 rps (no errors, no balancer retries, the
stopped replica never served during its outage), the 20 round
same-key race, the limits and isolation check with a run against
deliberate violations, and two rolling updates under load: from the
level 3 image, where the old replicas without a drain window caused
54 redispatches and 2 response errors that the balancer retried, and
between two current builds with all counters at zero. Level 3 runs
are refreshed on the new code: smoke, stack view, both failovers with
the drain sequence in the replica log, hooks with the longer stop,
persistence, stack fault tests and own tests with the shutdown and
timeout chain output.

The report gains the shutdown order, the check period and worst
detection per failure with measurements, the timeout chain, rows 4.1
to 4.4, level 4 rows of the failure table, the k6 role, the new
variables and the updated limitations; AGENTS.md lists the commands.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-28 20:07:51 +03:00

38 lines
2.2 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
date: 2026-10-28T16:57:24Z commit: e00eb6c
$ make test-faults BASE_URL=http://localhost:18083
BASE_URL="http://localhost:18083" .venv/bin/pytest -m stack -v -s student-tests/stack
============================= test session starts ==============================
platform darwin -- Python 3.14.5, pytest-9.1.1, pluggy-1.6.0
rootdir: /Users/artemkostylev/projects/learning/HL/labs/mtusi2026lab3
configfile: pyproject.toml
plugins: asyncio-1.4.0, anyio-4.15.1
asyncio: mode=Mode.AUTO, debug=False, asyncio_default_fixture_loop_scope=function, asyncio_default_test_loop_scope=function
collected 10 items
student-tests/stack/test_faults.py гонка 50 регистраций: 201×1, 409×49
.чат с несуществующим участником: 400
.неверный пароль: 401 за 0.012 с
неизвестный пользователь: 401 за 0.012 с
.logout: 204, затем 401, повтор 401
.5 проверок токена: keyspace_hits 4 → 9
.valkey остановлен, действующий токен: 200 за 0.004 с
valkey остановлен, неизвестный токен: 401 за 0.002 с
valkey остановлен: ready 200, вход 201, выход 503
valkey снова запущен: повторный выход 204
.рестарт valkey: ключей 25 → 25
рестарт valkey: живой 200, отозванный 401
.FLUSHALL: живой 200, отозванный 401
.postgres остановлен, ready: 503 за 0.004 с
postgres остановлен, me: 503 за 0.003 с
postgres остановлен, stranger: 503 за 0.002 с
postgres остановлен, login: 503 за 0.002 с
postgres остановлен, register: 503 за 0.014 с
live внутри реплики 200; LB исключил все реплики ещё через 0.61 с
live через LB без реплик: 503 за 0.000 с
postgres запущен: готовность через 2.1 с, прежний токен 200
.рестарт api: готовность через 2.8 с, токен 200
expires_at при входе 2026-10-28T17:57:38.249277Z, в БД после рестарта 2026-10-28T17:57:38.249277Z
.
============================= 10 passed in 19.25s ==============================