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