Repository navigation
Commit 4603817
fix(lock): keep the denial when no retry can be scheduled
withinDenialBudget() only bounded the denial count, not the caller's retry
and timeout limits. A lock-file EPERM still went through waitForRetry(),
which throws file_lock_timeout under retries: 0 or an elapsed deadline, so
the caller lost the permission diagnosis on exactly the settings that ask
to fail fast. The PR claimed bounded denials preserved EPERM; they did not.
Hand the original denial back when waiting cannot schedule another attempt.
Any other waitForRetry() failure still propagates as itself, and both the
create and snapshot-read branches route through the same helper.
Adds a regression pinning EPERM with retries: 0 for the create branch.
Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01GGksu4AaxVTcTHZntKTyAs1 parent 3d0ffe4 commit 4603817
3 files changed
Lines changed: 41 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
269 | 280 | | |
270 | 281 | | |
271 | 282 | | |
| |||
383 | 394 | | |
384 | 395 | | |
385 | 396 | | |
386 | | - | |
| 397 | + | |
387 | 398 | | |
388 | 399 | | |
389 | 400 | | |
| |||
404 | 415 | | |
405 | 416 | | |
406 | 417 | | |
407 | | - | |
| 418 | + | |
408 | 419 | | |
409 | 420 | | |
410 | 421 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
40 | 66 | | |
41 | 67 | | |
42 | 68 | | |
| |||
0 commit comments