fix(nodes): retry permanent client deletes durably

Record node-wide deletes with the local mutation and replay them through the exclusive reconciliation turn. Match acknowledgments to the queued generation and supersede stale deletes when a client is recreated or reattached.
This commit is contained in:
Hamed Sanaei
2026-12-02 13:31:40 +03:30
parent 34473052a7
commit 6fe0bd86dd
15 changed files with 342 additions and 35 deletions
+1 -1
View File
@@ -147,7 +147,7 @@ jobs:
- name: PostgreSQL node client push ordering
run: |
set -o pipefail
go test ./internal/web/service -run '^Test(NodeClientMutationsCommitWhileAnEarlierPushIsBlocked|NodeClientQueueTimeoutDefersCommittedDelta|NodeWideDeleteInvalidatesSettingsSentByQueuedReconcile|ReconcileDoesNotOvertakeCommittedClientState|TrafficDepletionWaitsForEarlierNodeClientPush)$' -count=1 -v | tee /tmp/postgres-node-client-order.log
go test ./internal/web/service -run '^Test(NodeClientMutationsCommitWhileAnEarlierPushIsBlocked|NodeClientQueueTimeoutDefersCommittedDelta|NodeWideDeleteSkipsReattachmentSentByQueuedReconcile|NodeWideDeleteRetriesAfterQueueExpiry|BulkDeleteStopsPushingToAHungNode|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 5 ]; then
echo "expected 5 passing PostgreSQL node client ordering tests, got $passed" >&2