Commit 24286a0
fix(database): retry adapter pool-acquire timeouts in $transaction
The retry decision used retryCodes.includes(error.code) directly, inside the
isPrismaKnownError branch, so the broadened isPrismaRetriableError check never
governed retries. Route the retry decision through isPrismaRetriableError so the
adapter's pool-acquire timeout is retried like P2024 was, while keeping
prismaError()/swallow behavior for coded errors only.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 1c72e57 commit 24286a0
1 file changed
Lines changed: 8 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
104 | 103 | | |
| 104 | + | |
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| |||
0 commit comments