fix(nodes): order client pushes outside inbound mutation locks

Reserve node apply turns in database commit order and release the inbound mutation lock before waiting or calling the remote runtime. Keep lifecycle updates and full reconciliation in the same sequence, preserve dirty generations across overlapping writes, and invalidate fingerprints after uncertain or superseded remote state.
This commit is contained in:
Hamed Sanaei
2026-11-30 22:08:47 +03:30
parent 15feed9ea7
commit e80af331eb
13 changed files with 891 additions and 179 deletions
+10
View File
@@ -144,6 +144,16 @@ jobs:
exit 1
fi
- name: PostgreSQL node client push ordering
run: |
set -o pipefail
go test ./internal/web/service -run '^Test(NodeClientMutationsCommitWhileAnEarlierPushIsBlocked|ReconcileDoesNotOvertakeCommittedClientState|TrafficDepletionWaitsForEarlierNodeClientPush)$' -count=1 -v | tee /tmp/postgres-node-client-order.log
passed=$(grep -c -- '^--- PASS' /tmp/postgres-node-client-order.log || true)
if [ "$passed" -ne 3 ]; then
echo "expected 3 passing PostgreSQL node client ordering tests, got $passed" >&2
exit 1
fi
- name: PostgreSQL global-traffic heartbeat regressions
run: |
set -o pipefail