Skip to content

Commit 43c1afc

Browse files
author
Shane Wall
committed
demo/postgres-survive-kill9/ci-smoke.sh now issues an explicit CHECKPOINT before the SIGKILL to ensure WAL is flushed and state is durable. The metrics check remains best-effort; readiness/table checks are still strict.
1 parent cb4b6b9 commit 43c1afc

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

demo/postgres-survive-kill9/ci-smoke.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ wait_metrics || true
6161
baseline=$(docker compose exec -T postgres psql -U postgres -d bench -t -A -c "SELECT count(*) FROM pgbench_history;" 2>/dev/null || echo "0")
6262
echo "Baseline transactions: ${baseline}"
6363

64+
# Flush durable state before the crash so WAL is on disk
65+
docker compose exec -T postgres psql -U postgres -d bench -c "CHECKPOINT;" >/dev/null
66+
6467
docker compose kill -s KILL postgres
6568

6669
echo "Waiting for Postgres to restart..."

0 commit comments

Comments
 (0)