fix(archive): stop takeOffFutureGames and downgrade P2010 unreachable-database errors to info (BIT-32469) #276

Merged
spark merged 1 commits from fix/BIT-32469-archive-p2010-unreachable into main 2026-11-18 21:54:54 +00:00
1 Commits
Author SHA1 Message Date
paula-alves 2bcaf7c983 fix(archive): stop takeOffFutureGames and downgrade P2010 unreachable-database errors to info (BIT-32469)
ci / rust (pull_request) Successful in 4m32s
ci / typescript (pull_request) Successful in 9m27s
The rematch loop already stopped and downgraded P1001/unreachable-DB errors
to info (BIT-32462), but takeOffFutureGames had the same warn-per-folder
pattern that pages the error loop for transient blips. The error in BIT-32469
was a P2010 raw-query wrapper around 'Can't reach database server' reported
from release 902ebda (before BIT-32462 deployed).

- Add isPrismaServerUnreachable check to takeOffFutureGames catch: stop the
  batch and log at info, same as rematch
- Add pg.test.ts case for P2010 wrapping 'Can't reach database server'
- Add rematch test variant for the P2010 raw-query wrapper
- Add takeOffFutureGames test for unreachable-DB stop+downgrade

Paperclip-Issue: BIT-32469
Paperclip-Cluster: 29b596ed90d7
2026-11-18 21:43:37 +00:00