Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
milvus
milvus
提交
1d9f4e0a
M
milvus
项目概览
milvus
/
milvus
大约 1 年 前同步成功
通知
261
Star
22476
Fork
2472
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
milvus
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
1d9f4e0a
编写于
11月 30, 2021
作者:
X
Xiaofan
提交者:
GitHub
11月 30, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add log when server is stopped (#12233)
Signed-off-by:
N
xiaofan-luan
<
xiaofan.luan@zilliz.com
>
上级
074c36de
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
14 addition
and
5 deletion
+14
-5
internal/distributed/datacoord/service.go
internal/distributed/datacoord/service.go
+1
-0
internal/distributed/datanode/service.go
internal/distributed/datanode/service.go
+1
-0
internal/distributed/indexcoord/service.go
internal/distributed/indexcoord/service.go
+1
-0
internal/distributed/indexnode/service.go
internal/distributed/indexnode/service.go
+1
-0
internal/distributed/proxy/service.go
internal/distributed/proxy/service.go
+1
-0
internal/distributed/querycoord/service.go
internal/distributed/querycoord/service.go
+1
-0
internal/distributed/querynode/service.go
internal/distributed/querynode/service.go
+1
-0
internal/distributed/rootcoord/service.go
internal/distributed/rootcoord/service.go
+7
-5
未找到文件。
internal/distributed/datacoord/service.go
浏览文件 @
1d9f4e0a
...
...
@@ -167,6 +167,7 @@ func (s *Server) start() error {
// Stop stops the DataCoord server gracefully.
// Need to call the GracefulStop interface of grpc server and call the stop method of the inner DataCoord object.
func
(
s
*
Server
)
Stop
()
error
{
log
.
Debug
(
"Datacoord stop"
,
zap
.
String
(
"Address"
,
Params
.
Address
))
var
err
error
if
s
.
closer
!=
nil
{
if
err
=
s
.
closer
.
Close
();
err
!=
nil
{
...
...
internal/distributed/datanode/service.go
浏览文件 @
1d9f4e0a
...
...
@@ -151,6 +151,7 @@ func (s *Server) Run() error {
}
func
(
s
*
Server
)
Stop
()
error
{
log
.
Debug
(
"Datanode stop"
,
zap
.
String
(
"Address"
,
Params
.
Address
))
if
s
.
closer
!=
nil
{
if
err
:=
s
.
closer
.
Close
();
err
!=
nil
{
return
err
...
...
internal/distributed/indexcoord/service.go
浏览文件 @
1d9f4e0a
...
...
@@ -114,6 +114,7 @@ func (s *Server) start() error {
// Stop stops IndexCoord's grpc service.
func
(
s
*
Server
)
Stop
()
error
{
log
.
Debug
(
"Indexcoord stop"
,
zap
.
String
(
"Address"
,
Params
.
Address
))
if
s
.
closer
!=
nil
{
if
err
:=
s
.
closer
.
Close
();
err
!=
nil
{
return
err
...
...
internal/distributed/indexnode/service.go
浏览文件 @
1d9f4e0a
...
...
@@ -168,6 +168,7 @@ func (s *Server) start() error {
// Stop stops IndexNode's grpc service.
func
(
s
*
Server
)
Stop
()
error
{
log
.
Debug
(
"IndexNode stop"
,
zap
.
String
(
"Address"
,
Params
.
Address
))
if
s
.
closer
!=
nil
{
if
err
:=
s
.
closer
.
Close
();
err
!=
nil
{
return
err
...
...
internal/distributed/proxy/service.go
浏览文件 @
1d9f4e0a
...
...
@@ -269,6 +269,7 @@ func (s *Server) start() error {
// Stop stop the Proxy Server
func
(
s
*
Server
)
Stop
()
error
{
log
.
Debug
(
"Proxy stop"
,
zap
.
String
(
"Address"
,
Params
.
Address
))
var
err
error
if
s
.
closer
!=
nil
{
if
err
=
s
.
closer
.
Close
();
err
!=
nil
{
...
...
internal/distributed/querycoord/service.go
浏览文件 @
1d9f4e0a
...
...
@@ -266,6 +266,7 @@ func (s *Server) start() error {
// Stop stops QueryCoord's grpc service.
func
(
s
*
Server
)
Stop
()
error
{
log
.
Debug
(
"QueryCoord stop"
,
zap
.
String
(
"Address"
,
Params
.
Address
))
if
s
.
closer
!=
nil
{
if
err
:=
s
.
closer
.
Close
();
err
!=
nil
{
return
err
...
...
internal/distributed/querynode/service.go
浏览文件 @
1d9f4e0a
...
...
@@ -251,6 +251,7 @@ func (s *Server) Run() error {
// Stop stops QueryNode's grpc service.
func
(
s
*
Server
)
Stop
()
error
{
log
.
Debug
(
"QueryNode stop"
,
zap
.
String
(
"Address"
,
Params
.
Address
))
if
s
.
closer
!=
nil
{
if
err
:=
s
.
closer
.
Close
();
err
!=
nil
{
return
err
...
...
internal/distributed/rootcoord/service.go
浏览文件 @
1d9f4e0a
...
...
@@ -264,31 +264,33 @@ func (s *Server) start() error {
}
func
(
s
*
Server
)
Stop
()
error
{
log
.
Debug
(
"Rootcoord stop"
,
zap
.
String
(
"Address"
,
Params
.
Address
))
if
s
.
closer
!=
nil
{
if
err
:=
s
.
closer
.
Close
();
err
!=
nil
{
log
.
Error
(
"close opentracing"
,
zap
.
Error
(
err
))
log
.
Error
(
"
Failed to
close opentracing"
,
zap
.
Error
(
err
))
}
}
if
s
.
indexCoord
!=
nil
{
if
err
:=
s
.
indexCoord
.
Stop
();
err
!=
nil
{
log
.
Debug
(
"
close indexCoord client"
,
zap
.
Error
(
err
))
log
.
Error
(
"Failed to
close indexCoord client"
,
zap
.
Error
(
err
))
}
}
if
s
.
dataCoord
!=
nil
{
if
err
:=
s
.
dataCoord
.
Stop
();
err
!=
nil
{
log
.
Debug
(
"
close dataCoord client"
,
zap
.
Error
(
err
))
log
.
Error
(
"Failed to
close dataCoord client"
,
zap
.
Error
(
err
))
}
}
if
s
.
queryCoord
!=
nil
{
if
err
:=
s
.
queryCoord
.
Stop
();
err
!=
nil
{
log
.
Debug
(
"
close queryCoord client"
,
zap
.
Error
(
err
))
log
.
Error
(
"Failed to
close queryCoord client"
,
zap
.
Error
(
err
))
}
}
if
s
.
rootCoord
!=
nil
{
if
err
:=
s
.
rootCoord
.
Stop
();
err
!=
nil
{
log
.
Debug
(
"
close rootCoord"
,
zap
.
Error
(
err
))
log
.
Error
(
"Failed to close
close rootCoord"
,
zap
.
Error
(
err
))
}
}
log
.
Debug
(
"Rootcoord begin to stop grpc server"
)
s
.
cancel
()
if
s
.
grpcServer
!=
nil
{
s
.
grpcServer
.
GracefulStop
()
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录