Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
milvus
milvus
提交
f36e02df
M
milvus
项目概览
milvus
/
milvus
10 个月 前同步成功
通知
260
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,体验更适合开发者的 AI 搜索 >>
未验证
提交
f36e02df
编写于
1月 15, 2022
作者:
X
Xiaofan
提交者:
GitHub
1月 15, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add more log when tt failed (#15227)
Signed-off-by:
N
xiaofan-luan
<
xiaofan.luan@zilliz.com
>
上级
f617c888
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
7 addition
and
3 deletion
+7
-3
internal/rootcoord/root_coord.go
internal/rootcoord/root_coord.go
+3
-1
internal/rootcoord/task.go
internal/rootcoord/task.go
+4
-2
未找到文件。
internal/rootcoord/root_coord.go
浏览文件 @
f36e02df
...
@@ -1816,15 +1816,17 @@ func (c *Core) AllocID(ctx context.Context, in *rootcoordpb.AllocIDRequest) (*ro
...
@@ -1816,15 +1816,17 @@ func (c *Core) AllocID(ctx context.Context, in *rootcoordpb.AllocIDRequest) (*ro
// UpdateChannelTimeTick used to handle ChannelTimeTickMsg
// UpdateChannelTimeTick used to handle ChannelTimeTickMsg
func
(
c
*
Core
)
UpdateChannelTimeTick
(
ctx
context
.
Context
,
in
*
internalpb
.
ChannelTimeTickMsg
)
(
*
commonpb
.
Status
,
error
)
{
func
(
c
*
Core
)
UpdateChannelTimeTick
(
ctx
context
.
Context
,
in
*
internalpb
.
ChannelTimeTickMsg
)
(
*
commonpb
.
Status
,
error
)
{
if
code
,
ok
:=
c
.
checkHealthy
();
!
ok
{
if
code
,
ok
:=
c
.
checkHealthy
();
!
ok
{
log
.
Warn
(
"failed to updateTimeTick because rootcoord is not healthy"
,
zap
.
Any
(
"state"
,
code
))
return
failStatus
(
commonpb
.
ErrorCode_UnexpectedError
,
"StateCode="
+
internalpb
.
StateCode_name
[
int32
(
code
)]),
nil
return
failStatus
(
commonpb
.
ErrorCode_UnexpectedError
,
"StateCode="
+
internalpb
.
StateCode_name
[
int32
(
code
)]),
nil
}
}
if
in
.
Base
.
MsgType
!=
commonpb
.
MsgType_TimeTick
{
if
in
.
Base
.
MsgType
!=
commonpb
.
MsgType_TimeTick
{
log
.
Warn
(
"failed to updateTimeTick because base messasge is not timetick, state"
,
zap
.
Any
(
"base message type"
,
in
.
Base
.
MsgType
))
msgTypeName
:=
commonpb
.
MsgType_name
[
int32
(
in
.
Base
.
GetMsgType
())]
msgTypeName
:=
commonpb
.
MsgType_name
[
int32
(
in
.
Base
.
GetMsgType
())]
return
failStatus
(
commonpb
.
ErrorCode_UnexpectedError
,
"invalid message type "
+
msgTypeName
),
nil
return
failStatus
(
commonpb
.
ErrorCode_UnexpectedError
,
"invalid message type "
+
msgTypeName
),
nil
}
}
err
:=
c
.
chanTimeTick
.
updateTimeTick
(
in
,
"gRPC"
)
err
:=
c
.
chanTimeTick
.
updateTimeTick
(
in
,
"gRPC"
)
if
err
!=
nil
{
if
err
!=
nil
{
log
.
Error
(
"UpdateTimeTick failed
"
,
zap
.
String
(
"role"
,
typeutil
.
RootCoordRole
),
log
.
Warn
(
"failed to updateTimeTick
"
,
zap
.
String
(
"role"
,
typeutil
.
RootCoordRole
),
zap
.
Int64
(
"msgID"
,
in
.
Base
.
MsgID
),
zap
.
Error
(
err
))
zap
.
Int64
(
"msgID"
,
in
.
Base
.
MsgID
),
zap
.
Error
(
err
))
return
failStatus
(
commonpb
.
ErrorCode_UnexpectedError
,
"UpdateTimeTick failed: "
+
err
.
Error
()),
nil
return
failStatus
(
commonpb
.
ErrorCode_UnexpectedError
,
"UpdateTimeTick failed: "
+
err
.
Error
()),
nil
}
}
...
...
internal/rootcoord/task.go
浏览文件 @
f36e02df
...
@@ -338,8 +338,10 @@ func (t *DropCollectionReqTask) Execute(ctx context.Context) error {
...
@@ -338,8 +338,10 @@ func (t *DropCollectionReqTask) Execute(ctx context.Context) error {
log
.
Warn
(
"Failed to send timetick"
,
zap
.
Error
(
errTimeTick
))
log
.
Warn
(
"Failed to send timetick"
,
zap
.
Error
(
errTimeTick
))
}
}
// send tt into deleted channels to tell data_node to clear flowgragh
// send tt into deleted channels to tell data_node to clear flowgragh
t
.
core
.
chanTimeTick
.
sendTimeTickToChannel
(
collMeta
.
PhysicalChannelNames
,
ts
)
err
:=
t
.
core
.
chanTimeTick
.
sendTimeTickToChannel
(
collMeta
.
PhysicalChannelNames
,
ts
)
if
err
!=
nil
{
log
.
Warn
(
"failed to send time tick to channel"
,
zap
.
Any
(
"physical names"
,
collMeta
.
PhysicalChannelNames
),
zap
.
Error
(
err
))
}
// remove dml channel after send dd msg
// remove dml channel after send dd msg
t
.
core
.
chanTimeTick
.
removeDmlChannels
(
collMeta
.
PhysicalChannelNames
...
)
t
.
core
.
chanTimeTick
.
removeDmlChannels
(
collMeta
.
PhysicalChannelNames
...
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录