fix(nodes): bound ordered client dispatch and scope cache invalidation

Run independent inbounds in parallel while full reconciliation and permanent deletes retain node-wide ordering. Bound queue waits and live batches, and invalidate only cached payloads affected by a remote client deletion.
This commit is contained in:
Hamed Sanaei
2026-11-30 23:16:19 +03:30
parent e80af331eb
commit 4e0fb882bf
11 changed files with 266 additions and 114 deletions
+3 -3
View File
@@ -147,10 +147,10 @@ jobs:
- 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
go test ./internal/web/service -run '^Test(NodeClientMutationsCommitWhileAnEarlierPushIsBlocked|NodeClientQueueTimeoutDefersCommittedDelta|NodeWideDeleteInvalidatesSettingsSentByQueuedReconcile|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
if [ "$passed" -ne 5 ]; then
echo "expected 5 passing PostgreSQL node client ordering tests, got $passed" >&2
exit 1
fi