Commit c46f2a5
committed
fix: Properly shutdown quickwit-serve when subcomponents panic or otherwise error.
Before this change, the `if let Err` block silently swallows the error and logs it. The code continues on to the `shutdown_handle.await` call. In the case where the `tokio::try_join!` returns an error (such as when any of the three components for the three `JoinHandle` arguments panic), the `shutdown_handle` is not guaranteed to have completed, so the program sits there waiting for a SIGTERM, even though some components aren’t running.1 parent b69ddfe commit c46f2a5
1 file changed
Lines changed: 10 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
| 58 | + | |
57 | 59 | | |
58 | 60 | | |
59 | 61 | | |
| |||
396 | 398 | | |
397 | 399 | | |
398 | 400 | | |
399 | | - | |
| 401 | + | |
400 | 402 | | |
401 | 403 | | |
402 | 404 | | |
403 | 405 | | |
404 | 406 | | |
405 | 407 | | |
406 | | - | |
| 408 | + | |
407 | 409 | | |
408 | 410 | | |
409 | 411 | | |
| |||
825 | 827 | | |
826 | 828 | | |
827 | 829 | | |
| 830 | + | |
| 831 | + | |
828 | 832 | | |
829 | | - | |
| 833 | + | |
830 | 834 | | |
831 | 835 | | |
832 | 836 | | |
| |||
851 | 855 | | |
852 | 856 | | |
853 | 857 | | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
854 | 861 | | |
855 | 862 | | |
856 | 863 | | |
| |||
0 commit comments