Repository navigation
Commit 765f147
committed
[BUG] Finish an unregistered operation before telling its handler
The branch added for a session the client never registered reported the
failure and then finished the operation. The handler is replaceable, and
one that calls FinishSession() from that event waits on a promise that
only the Cleanup() below the dispatch can fulfil, on the same stack.
Measured: the case hung for the whole 60 second bound, twice, exit 124.
With the order reversed it returns in under a second, 3 of 3.
The terminal state goes in before Cleanup() so it still reports one
event rather than a manual cancel, and the report now happens after the
operation is done, which is the order the exporters already follow:
retire, then call anything replaceable.
The case stays, because the failure mode is a hang. Nothing else in the
file would notice the order being put back.
32 tests pass, 3 of 3.
Signed-off-by: thc1006 <84045975+thc1006@users.noreply.github.com>1 parent b87e7bc commit 765f147
2 files changed
Lines changed: 58 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1489 | 1489 | | |
1490 | 1490 | | |
1491 | 1491 | | |
1492 | | - | |
1493 | | - | |
| 1492 | + | |
| 1493 | + | |
| 1494 | + | |
| 1495 | + | |
| 1496 | + | |
| 1497 | + | |
| 1498 | + | |
| 1499 | + | |
1494 | 1500 | | |
1495 | 1501 | | |
1496 | | - | |
1497 | 1502 | | |
1498 | 1503 | | |
1499 | 1504 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
783 | 783 | | |
784 | 784 | | |
785 | 785 | | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
786 | 836 | | |
787 | 837 | | |
788 | 838 | | |
| |||
0 commit comments