wei liu ccc993bbb3
fix: Prevent deadlock in runComponent when Prepare fails (#45609) (#45647)
issue: #45608
pr: #45609
When component.Prepare() fails (e.g., net listener creation error), the
sign channel was never closed, causing runComponent to block
indefinitely at <-sign. This resulted in the entire process hanging
after logging the error message.

Changes:
- Move close(sign) to defer statement in runComponent goroutine
- Ensures sign channel is always closed regardless of success/failure
- Allows proper error propagation through future.Await() mechanism

---------

Signed-off-by: Wei Liu <wei.liu@zilliz.com>
2025-11-19 16:43:09 +08:00
..
2025-09-16 16:32:01 +08:00
2023-09-21 09:45:27 +08:00
2021-11-16 15:41:11 +08:00