Commit 9a199c3
docs(deploy): name the tripwire as the mechanism, not pool starvation
The previous commit attributed the 500 to pool starvation under concurrency.
That was wrong. `packages/db/tx-tripwire.ts` marks the async context for the
duration of a transaction callback and reports any query issued on the global
pool inside it — throwing outside production, warning in production. So the
failure was deterministic in dev, not load-dependent, which is why it reported
against the authz lookup rather than anything the caller wrote.
Saturation deadlock is what the tripwire exists to PREVENT, not what happened.
Recording the real mechanism, since the wrong one would send the next reader
looking for a concurrency bug.
Also drops a comment claiming a transaction connection "cannot serve concurrent
statements". `loadWorkflowDeploymentSnapshot` issues two tx-handle reads under
`Promise.all` and has always worked, so the claim is false; the sequential reads
stay because they are clearer, not because concurrency is unsafe.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent f3c669a commit 9a199c3
2 files changed
Lines changed: 14 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
34 | 37 | | |
35 | 38 | | |
36 | 39 | | |
| |||
52 | 55 | | |
53 | 56 | | |
54 | 57 | | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | 58 | | |
60 | 59 | | |
61 | 60 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
| |||
0 commit comments