fix: streamingnode should exit when initializing failure (#45732)

issue: #45721
pr: #45731

Signed-off-by: chyezh <chyezh@outlook.com>
This commit is contained in:
Zhen Ye 2025-11-20 18:24:19 +08:00 committed by GitHub
parent bc3b1bf61c
commit a48f7ae170
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -43,7 +43,9 @@ func (s *Server) init() {
s.initService()
log.Info("init query segcore...")
initcore.InitQueryNode(context.TODO())
if err := initcore.InitQueryNode(context.TODO()); err != nil {
panic(fmt.Sprintf("init query node segcore failed, %+v", err))
}
log.Info("streamingnode server initialized")
}