Repository navigation
Commit bd486b6
fix(sqlite): skip slow-lock diagnostic when busyTimeoutMs is zero (#115990)
* [AI] fix(sqlite): skip slow-lock diagnostic when busyTimeoutMs is zero
busyTimeoutMs: 0 means "do not wait for locks, fail immediately".
The slow lock wait threshold should not collapse to 1ms in this case,
causing false-positive WARN logs for normal successful transactions.
Fixes #115972
Co-Authored-By: Claude <[email protected]>
* test(sqlite): add regression tests for busyTimeoutMs: 0 threshold
The existing test suite did not cover busyTimeoutMs: 0, which caused
false-positive slow-lock warnings for zero-timeout lease transactions.
Added:
1. 'does not warn for busyTimeoutMs: 0 with fast transactions' —
verifies the regression is fixed (0 → uses 1000ms default threshold)
2. 'still warns for busyTimeoutMs: 0 when crossing 1000ms boundary' —
verifies genuinely slow transactions still trigger the diagnostic
Both tests pass on the patched code (12/12 total).
Co-Authored-By: Claude <[email protected]>
---------
Co-authored-by: Claude <[email protected]>
Co-authored-by: Vincent Koc <[email protected]>1 parent 568bfd0 commit bd486b6
2 files changed
Lines changed: 56 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
263 | 263 | | |
264 | 264 | | |
265 | 265 | | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
266 | 320 | | |
267 | 321 | | |
268 | 322 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
| 82 | + | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| |||
0 commit comments