wei liu e695d8a1d0
fix: Prevent deadlock in runComponent when Prepare fails (#45626)
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-18 17:29:42 +08:00
..
2023-09-21 09:45:27 +08:00
2021-11-16 15:41:11 +08:00