Delayed deposits traced to orphaned replica queries blocking database cleanup
Deposits at a payments service stalled in pending status overnight, with the delay peaking at 85 minutes, though no funds were ultimately lost. The transactional outbox relay had slowed sharply, and its outbox table on the primary database had swollen to nearly 10 million dead rows, even though autovacuum ran constantly. The cause was two physical replication slots holding back cleanup because of nine multi-hour count queries left running on read replicas, which were abandoned after an admin segment builder timed out and retried. Those queries were cancelled, after which the vacuum pass completed and the backlog cleared within minutes, and all delayed deposits were published.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in