Repository navigation
Commit 7a45dec
committed
fix(ha): wait for handoff only when a redirect went out
Address review feedback on the shutdown handoff:
- Wait for a replacement session only when the stopping replica queued a
SessionRedirect. Single-replica gateways, supervisors without redirect
support, and full outbound channels no longer pay the grace period.
- Close the session stream in both directions before cleanup so a
supervisor without a redirect sees EOF and reconnects at once.
- Bound the replacement wait with timeout_at and the shared session-wait
backoff, so the grace is a hard ceiling.
- Name the supervisor session shutdown timeout and assert at compile
time that it leaves room after the grace period.
- Demote the sandbox when session setup fails after the owner publish,
so a failed takeover cannot leave it Ready with no session.
- Move the supervisor reconnect delays into ReconnectBackoff so both
loop branches reset the same way, and test reconnect sequences.
Signed-off-by: Piotr Mlocek <[email protected]>1 parent 6853205 commit 7a45dec
4 files changed
Lines changed: 384 additions & 200 deletions
File tree
- crates
- openshell-server/src
- compute
- openshell-supervisor-process/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
340 | 340 | | |
341 | 341 | | |
342 | 342 | | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | 343 | | |
347 | 344 | | |
348 | 345 | | |
| |||
4763 | 4760 | | |
4764 | 4761 | | |
4765 | 4762 | | |
4766 | | - | |
4767 | | - | |
4768 | | - | |
4769 | | - | |
4770 | | - | |
4771 | | - | |
4772 | | - | |
4773 | | - | |
4774 | | - | |
4775 | | - | |
4776 | | - | |
4777 | | - | |
4778 | | - | |
4779 | | - | |
4780 | | - | |
4781 | | - | |
4782 | | - | |
4783 | | - | |
4784 | | - | |
4785 | | - | |
4786 | | - | |
4787 | | - | |
4788 | | - | |
4789 | | - | |
4790 | | - | |
4791 | | - | |
4792 | | - | |
4793 | | - | |
4794 | | - | |
4795 | | - | |
4796 | | - | |
4797 | | - | |
4798 | | - | |
4799 | | - | |
4800 | | - | |
4801 | | - | |
| 4763 | + | |
4802 | 4764 | | |
4803 | 4765 | | |
4804 | 4766 | | |
| |||
14328 | 14290 | | |
14329 | 14291 | | |
14330 | 14292 | | |
14331 | | - | |
14332 | | - | |
14333 | | - | |
14334 | | - | |
14335 | | - | |
14336 | | - | |
14337 | | - | |
14338 | | - | |
14339 | | - | |
14340 | | - | |
14341 | | - | |
14342 | | - | |
14343 | | - | |
14344 | | - | |
14345 | | - | |
14346 | | - | |
14347 | | - | |
14348 | | - | |
14349 | | - | |
14350 | | - | |
14351 | | - | |
14352 | | - | |
14353 | | - | |
14354 | | - | |
14355 | | - | |
14356 | | - | |
14357 | | - | |
14358 | | - | |
14359 | | - | |
14360 | | - | |
14361 | | - | |
14362 | | - | |
14363 | | - | |
14364 | | - | |
14365 | | - | |
14366 | | - | |
14367 | | - | |
14368 | | - | |
14369 | | - | |
14370 | | - | |
14371 | | - | |
14372 | | - | |
14373 | | - | |
14374 | | - | |
14375 | | - | |
14376 | | - | |
14377 | | - | |
14378 | | - | |
14379 | | - | |
14380 | | - | |
14381 | | - | |
14382 | | - | |
14383 | | - | |
14384 | | - | |
14385 | | - | |
14386 | | - | |
14387 | | - | |
14388 | | - | |
14389 | | - | |
14390 | | - | |
14391 | | - | |
14392 | | - | |
14393 | | - | |
14394 | | - | |
14395 | | - | |
14396 | | - | |
14397 | | - | |
14398 | | - | |
14399 | | - | |
14400 | | - | |
14401 | | - | |
14402 | | - | |
14403 | | - | |
14404 | | - | |
14405 | | - | |
14406 | 14293 | | |
14407 | 14294 | | |
14408 | 14295 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
991 | 991 | | |
992 | 992 | | |
993 | 993 | | |
994 | | - | |
| 994 | + | |
995 | 995 | | |
996 | 996 | | |
997 | 997 | | |
| |||
0 commit comments