fix(develop): treat 53300 pool exhaustion as transient in render poll (BIT-33549) #329

Merged
spark merged 1 commits from fix/BIT-33549-develop-poll-pool-exhaustion-transient into main 2026-12-04 12:52:10 +00:00
1 Commits
Author SHA1 Message Date
nelson-baptista 2d5f898f60 fix(develop): treat 53300 pool exhaustion as transient in render poll (BIT-33549)
ci / typescript (push) Skipped
ci / rust (push) Skipped
ci / rust (pull_request) Successful in 17m2s
ci / typescript (pull_request) Successful in 21m14s
The RenderWorker tick only checked isPostgresAdminShutdown (57P01) and
logged everything else at warn, so a $queryRaw hitting PostgreSQL's
max_connections limit (P2010 wrapping SQLSTATE 53300 'sorry, too many
clients already') paged the error loop on every tick.

Extend isPrismaTooManyConnections to also match the P2010/53300
raw-query variant, and add a branch in the tick handler that logs at
info and lets the next scheduled tick retry once a slot frees — same
pattern as the 57P01 admin-shutdown handling.

Paperclip-Issue: BIT-33549
2026-12-04 12:20:55 +00:00