mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-06 17:18:35 +08:00
fix: add init fs check for querynode and streaming node (#44360)
related: #44354 Signed-off-by: shaoting-huang <shaoting.huang@zilliz.com>
This commit is contained in:
parent
abe22b95c7
commit
9140201b8f
@ -336,9 +336,11 @@ func (node *QueryNode) InitSegcore() error {
|
||||
return err
|
||||
}
|
||||
|
||||
err = initcore.InitStorageV2FileSystem(paramtable.Get())
|
||||
if err != nil {
|
||||
return err
|
||||
if paramtable.Get().CommonCfg.EnableStorageV2.GetAsBool() {
|
||||
err = initcore.InitStorageV2FileSystem(paramtable.Get())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
err = initcore.InitMmapManager(paramtable.Get(), node.GetNodeID())
|
||||
|
||||
@ -46,8 +46,10 @@ func (s *Server) init() {
|
||||
log.Info("streamingnode server initialized")
|
||||
|
||||
// init storage v2 file system.
|
||||
if err := initcore.InitStorageV2FileSystem(paramtable.Get()); err != nil {
|
||||
panic(fmt.Sprintf("unrecoverable error happens at init storage v2 file system, %+v", err))
|
||||
if paramtable.Get().CommonCfg.EnableStorageV2.GetAsBool() {
|
||||
if err := initcore.InitStorageV2FileSystem(paramtable.Get()); err != nil {
|
||||
panic(fmt.Sprintf("unrecoverable error happens at init storage v2 file system, %+v", err))
|
||||
}
|
||||
}
|
||||
|
||||
// init paramtable change callback for core related config
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user