fix(nodes): shorten the traffic merge lock window

Defer existing client traffic writes until reconciliation has finished, batch baseline upserts, and log queue and transaction timing. Keep the merge atomic.
This commit is contained in:
Hamed Sanaei
2026-11-30 18:44:16 +00:00
parent 267379456a
commit 21f1fb1c4d
4 changed files with 298 additions and 65 deletions
+10
View File
@@ -214,6 +214,16 @@ jobs:
exit 1
fi
- name: PostgreSQL node merge contention
run: |
set -o pipefail
go test ./internal/web/service -run '^TestNodeMerge(LetsSubscriptionTouchDuringClientReconciliationPostgres|BatchesBaselinesForActiveClients)$' -count=1 -v | tee /tmp/postgres-node-merge-contention.log
passed=$(grep -c -- '^--- PASS' /tmp/postgres-node-merge-contention.log || true)
if [ "$passed" -ne 2 ]; then
echo "expected both PostgreSQL node merge contention tests to pass, got $passed" >&2
exit 1
fi
- name: PostgreSQL schema and migration tests
run: |
set -o pipefail