forked from mtusi2026/mtusi2026lab3
Lab 3: HAProxy + 2 replicas, idempotency, graceful shutdown, track 1
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
# 2026-11-03T09:51:31Z commit=n/a host=Linux 6.18.44-fc-v230 x86_64 cpus=2
|
||||
$ make test-cache-race
|
||||
docker compose --env-file .env run --rm --no-deps -T -v "/home/claude/work3/mtusi2026lab3/student-tests:/app/student-tests:ro" --entrypoint python api student-tests/test_cache_race.py
|
||||
Container mtusi-lab3-api-run-bc892bef496f Creating
|
||||
Container mtusi-lab3-api-run-bc892bef496f Created
|
||||
PASS read-through put makes entry readable
|
||||
PASS entry TTL capped by SESSION_CACHE_TTL_SECONDS pttl=60000ms
|
||||
PASS invalidate removes entry
|
||||
PASS late put after logout is refused by tombstone
|
||||
PASS tombstone outlives any cache entry pttl=74998ms
|
||||
PASS entry never outlives session expiry pttl=1199ms
|
||||
PASS expired session not served from cache
|
||||
cache unavailable; falling back to PostgreSQL
|
||||
PASS degraded mode: cache is not read until outbox drained
|
||||
summary: all passed
|
||||
exit=0
|
||||
Reference in New Issue
Block a user