Commit 2018225
committed
fix(execution): treat an undetermined lease as a fallback, not a denial
The distributed owner lease is a cross-process fairness check, not a
correctness lock. A round trip that did not answer before its deadline was
reported as a hard failure and rejected the execution, even though the
per-process pool and the per-owner active/queued limits still bound the work.
- Fall back to the local limits when the lease is undetermined. Only
`limit_exceeded` denies an execution, since it is an actual answer.
- Rename that outcome from `unavailable` to `undetermined` so the absence of
an answer is not read as a negative one, and log it at warn.
- Make the round-trip deadline configurable and raise its default. This
deadline and the client's `commandTimeout` are both plain timers, so a value
near normal event-loop latency misreads a scheduling pause as an unreachable
dependency.
- Skip the release round trip when no lease was ever registered.1 parent 2bda859 commit 2018225
3 files changed
Lines changed: 96 additions & 31 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
432 | 432 | | |
433 | 433 | | |
434 | 434 | | |
| 435 | + | |
435 | 436 | | |
436 | 437 | | |
437 | 438 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
498 | 498 | | |
499 | 499 | | |
500 | 500 | | |
501 | | - | |
| 501 | + | |
502 | 502 | | |
503 | 503 | | |
504 | 504 | | |
| |||
516 | 516 | | |
517 | 517 | | |
518 | 518 | | |
519 | | - | |
520 | | - | |
521 | | - | |
522 | | - | |
523 | | - | |
| 519 | + | |
| 520 | + | |
524 | 521 | | |
525 | 522 | | |
526 | | - | |
| 523 | + | |
527 | 524 | | |
528 | 525 | | |
529 | 526 | | |
| |||
548 | 545 | | |
549 | 546 | | |
550 | 547 | | |
551 | | - | |
552 | | - | |
553 | | - | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
554 | 607 | | |
| 608 | + | |
| 609 | + | |
555 | 610 | | |
556 | 611 | | |
557 | 612 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
143 | | - | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
144 | 153 | | |
145 | 154 | | |
146 | 155 | | |
| |||
347 | 356 | | |
348 | 357 | | |
349 | 358 | | |
350 | | - | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
351 | 369 | | |
352 | 370 | | |
353 | 371 | | |
| |||
358 | 376 | | |
359 | 377 | | |
360 | 378 | | |
361 | | - | |
| 379 | + | |
362 | 380 | | |
363 | 381 | | |
364 | | - | |
| 382 | + | |
365 | 383 | | |
366 | 384 | | |
367 | 385 | | |
| |||
407 | 425 | | |
408 | 426 | | |
409 | 427 | | |
410 | | - | |
| 428 | + | |
411 | 429 | | |
| 430 | + | |
412 | 431 | | |
413 | 432 | | |
414 | | - | |
| 433 | + | |
415 | 434 | | |
416 | 435 | | |
417 | 436 | | |
| |||
1416 | 1435 | | |
1417 | 1436 | | |
1418 | 1437 | | |
1419 | | - | |
1420 | | - | |
1421 | | - | |
1422 | | - | |
1423 | | - | |
1424 | | - | |
1425 | | - | |
1426 | | - | |
1427 | | - | |
1428 | | - | |
1429 | | - | |
1430 | | - | |
1431 | | - | |
1432 | | - | |
1433 | | - | |
| 1438 | + | |
| 1439 | + | |
1434 | 1440 | | |
1435 | 1441 | | |
| 1442 | + | |
1436 | 1443 | | |
1437 | 1444 | | |
1438 | 1445 | | |
| 1446 | + | |
| 1447 | + | |
1439 | 1448 | | |
1440 | 1449 | | |
1441 | 1450 | | |
| |||
0 commit comments