未验证 提交 ffbfce6e 编写于 作者: J Jiquan Long 提交者: GitHub

Optimize GetLoadingProgress to save RPC (#21493) (#21629)

Signed-off-by: Nlongjiquan <jiquan.long@zilliz.com>
上级 6ebb2b1e
......@@ -1898,6 +1898,8 @@ func (node *Proxy) GetLoadState(ctx context.Context, request *milvuspb.GetLoadSt
return getErrResponse(err), nil
}
// TODO(longjiquan): https://github.com/milvus-io/milvus/issues/21485, Remove `GetComponentStates` after error code
// is ready to distinguish case whether the querycoord is not healthy or the collection is not even loaded.
if statesResp, err := node.queryCoord.GetComponentStates(ctx); err != nil {
return getErrResponse(err), nil
} else if statesResp.State == nil || statesResp.State.StateCode != commonpb.StateCode_Healthy {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册