forked from mtusi2026/mtusi2026lab3
Every level 3 and level 4 file in evidence was taken one00eb6c, before track 1 rewrote the message write into one statement under the chat lock. The runs are repeated ona02d442: smoke, stack, storage, both failovers (the second after one shifting request), persistence, hooks, the lab 2 fault tests, limits and injected violations, 20 same-key races, three detection runs, failover-each under k6 and both rolling updates. All pass. checks.txt adds the real output of make check, make validate and make lint, and student-tests.txt includes the new access order test. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01V1d3RLHNBBMA6UqBLLJv27
39 lines
2.9 KiB
Plaintext
39 lines
2.9 KiB
Plaintext
date: 2026-10-29T20:14:57Z commit: a02d442
|
|
== before: api replicas (hostname = X-Instance-Id), state, StartedAt, FinishedAt
|
|
25e43a2e28f7 running started=2026-10-29T20:14:08.345060846Z finished=0001-01-01T00:00:00Z
|
|
87e8bd8ee0aa running started=2026-10-29T20:14:08.279637763Z finished=0001-01-01T00:00:00Z
|
|
$ make test-failover ACTION_SCRIPT=scripts/stop-one.sh
|
|
python3 tests/resilience.py --mode failover --action-script "scripts/stop-one.sh" --base-url "http://127.0.0.1:18083"
|
|
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
|
|
{"observed_instances_before": 2, "successful_writes": 135, "failed_attempts": 0, "first_recovery_seconds": 2.595}
|
|
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
|
|
== after: api replicas
|
|
25e43a2e28f7 running started=2026-10-29T20:14:08.345060846Z finished=0001-01-01T00:00:00Z
|
|
87e8bd8ee0aa exited started=2026-10-29T20:14:08.279637763Z finished=2026-10-29T20:15:00.794959093Z
|
|
== stopped replica: 87e8bd8ee0aa; shutdown: signal, drain window with readiness 503, close, exit
|
|
{"event":"Handling signal: term","level":"info","ts":"2026-10-29T20:14:58.448474Z"}
|
|
{"event":"Draining for 2.0 s","level":"info","ts":"2026-10-29T20:14:58.483791Z"}
|
|
{"event":"Draining for 2.0 s","level":"info","ts":"2026-10-29T20:14:58.493478Z"}
|
|
{"method":"GET","route":"/health/ready","status":503,"request_id":"414a2ff9f0b845b88f675f786f7c0dbb","duration_ms":0.812,"event":"request.handled","level":"info","ts":"2026-10-29T20:14:59.456403Z"}
|
|
{"method":"GET","route":"/health/ready","status":503,"request_id":"9ab9188ce3174ff0a28b563576c982e9","duration_ms":0.779,"event":"request.handled","level":"info","ts":"2026-10-29T20:14:59.964882Z"}
|
|
{"event":"Shutting down","level":"info","ts":"2026-10-29T20:15:00.487049Z"}
|
|
{"event":"Shutting down","level":"info","ts":"2026-10-29T20:15:00.499550Z"}
|
|
{"event":"service.stopped","level":"info","ts":"2026-10-29T20:15:00.594065Z"}
|
|
{"event":"Finished server process [8]","level":"info","ts":"2026-10-29T20:15:00.594433Z"}
|
|
{"event":"service.stopped","level":"info","ts":"2026-10-29T20:15:00.604836Z"}
|
|
{"event":"Finished server process [7]","level":"info","ts":"2026-10-29T20:15:00.605117Z"}
|
|
{"event":"Worker (pid:7) was sent SIGTERM!","level":"info","ts":"2026-10-29T20:15:00.616624Z"}
|
|
{"event":"Worker (pid:8) was sent SIGTERM!","level":"info","ts":"2026-10-29T20:15:00.616709Z"}
|
|
{"event":"Shutting down: Master","level":"info","ts":"2026-10-29T20:15:00.717551Z"}
|
|
$ scripts/restore.sh
|
|
Container mtusi2026lab3-api-1 Running
|
|
Container mtusi2026lab3-api-2 Starting
|
|
Container mtusi2026lab3-api-2 Started
|
|
Container mtusi2026lab3-api-2 Waiting
|
|
Container mtusi2026lab3-api-1 Waiting
|
|
Container mtusi2026lab3-api-2 Healthy
|
|
Container mtusi2026lab3-api-1 Healthy
|
|
== after restore
|
|
25e43a2e28f7 running started=2026-10-29T20:14:08.345060846Z finished=0001-01-01T00:00:00Z
|
|
87e8bd8ee0aa running started=2026-10-29T20:15:13.832984418Z finished=2026-10-29T20:15:00.794959093Z
|