mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-05 08:44:48 +03:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user