Commit df8f1a9
committed
fix(run-engine): keep unservable ck variants in the fair order
Reverts the de-registration added earlier on this branch. Dropping a variant from
ckVtime when it had work but nothing ready stranded it: pass 1 is the only reader
of ckVtime, and pass 2 is skipped whenever pass 1 fills the batch, so on a queue
busy enough to keep filling it the variant was never looked at again. A blind
review measured one sitting unserved for over two thousand calls after its head
became ready, and every nack backoff produces exactly that shape, so a single
steady key could hold up another key's retries indefinitely. That is worse than
the floor pinning it was meant to address.
The floor advance from servable variants handles both cases on its own, so the
de-registration bought nothing. It now also only takes its bound from pass 1.
Pass 2 picks candidates by message age, so its tag implies nothing about the
entries it skipped, and letting it move the floor stepped over registered
variants that were servable and simply never visited, confiscating their credit
on the next serve.
Adds the regression test the earlier tests were missing. They proved the variant
was evicted but never that it came back, which is the half that was broken.1 parent a1d38ef commit df8f1a9
2 files changed
Lines changed: 95 additions & 34 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5060 | 5060 | | |
5061 | 5061 | | |
5062 | 5062 | | |
5063 | | - | |
| 5063 | + | |
5064 | 5064 | | |
5065 | 5065 | | |
5066 | 5066 | | |
| |||
5137 | 5137 | | |
5138 | 5138 | | |
5139 | 5139 | | |
5140 | | - | |
| 5140 | + | |
5141 | 5141 | | |
5142 | 5142 | | |
5143 | 5143 | | |
| |||
5184 | 5184 | | |
5185 | 5185 | | |
5186 | 5186 | | |
5187 | | - | |
5188 | | - | |
| 5187 | + | |
| 5188 | + | |
| 5189 | + | |
| 5190 | + | |
5189 | 5191 | | |
5190 | 5192 | | |
5191 | 5193 | | |
| |||
5210 | 5212 | | |
5211 | 5213 | | |
5212 | 5214 | | |
5213 | | - | |
5214 | | - | |
5215 | | - | |
5216 | 5215 | | |
5217 | 5216 | | |
5218 | 5217 | | |
| |||
5222 | 5221 | | |
5223 | 5222 | | |
5224 | 5223 | | |
5225 | | - | |
| 5224 | + | |
5226 | 5225 | | |
5227 | 5226 | | |
5228 | 5227 | | |
| |||
5234 | 5233 | | |
5235 | 5234 | | |
5236 | 5235 | | |
5237 | | - | |
| 5236 | + | |
5238 | 5237 | | |
5239 | 5238 | | |
5240 | 5239 | | |
| |||
Lines changed: 87 additions & 25 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
661 | 661 | | |
662 | 662 | | |
663 | 663 | | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
664 | 707 | | |
665 | | - | |
| 708 | + | |
| 709 | + | |
666 | 710 | | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
667 | 714 | | |
668 | 715 | | |
669 | 716 | | |
670 | 717 | | |
671 | | - | |
672 | | - | |
673 | | - | |
674 | | - | |
675 | | - | |
676 | | - | |
677 | | - | |
678 | | - | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
679 | 732 | | |
680 | 733 | | |
681 | 734 | | |
682 | | - | |
683 | | - | |
684 | | - | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
685 | 738 | | |
686 | 739 | | |
687 | 740 | | |
688 | 741 | | |
689 | 742 | | |
690 | | - | |
691 | | - | |
692 | | - | |
693 | | - | |
694 | 743 | | |
695 | | - | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
696 | 761 | | |
697 | | - | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
698 | 766 | | |
699 | | - | |
700 | | - | |
701 | | - | |
702 | | - | |
703 | | - | |
704 | | - | |
705 | | - | |
| 767 | + | |
706 | 768 | | |
707 | 769 | | |
708 | 770 | | |
| |||
0 commit comments