Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
milvus
milvus
提交
70eb275e
M
milvus
项目概览
milvus
/
milvus
9 个月 前同步成功
通知
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 搜索 >>
未验证
提交
70eb275e
编写于
10月 22, 2021
作者:
G
groot
提交者:
GitHub
10月 22, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[skip ci] Fix typo (#10412)
Signed-off-by:
N
yhmo
<
yihua.mo@zilliz.com
>
上级
6db06ecf
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
12 addition
and
12 deletion
+12
-12
internal/querynode/task.go
internal/querynode/task.go
+12
-12
未找到文件。
internal/querynode/task.go
浏览文件 @
70eb275e
...
...
@@ -126,7 +126,7 @@ func (w *watchDmChannelsTask) Execute(ctx context.Context) error {
pChannels
=
append
(
pChannels
,
p
)
VPChannels
[
v
]
=
p
}
log
.
Debug
(
"
s
tarting WatchDmChannels ..."
,
log
.
Debug
(
"
S
tarting WatchDmChannels ..."
,
zap
.
Any
(
"collectionName"
,
w
.
req
.
Schema
.
Name
),
zap
.
Any
(
"collectionID"
,
collectionID
),
zap
.
Any
(
"vChannels"
,
vChannels
),
...
...
@@ -135,7 +135,7 @@ func (w *watchDmChannelsTask) Execute(ctx context.Context) error {
if
len
(
VPChannels
)
!=
len
(
vChannels
)
{
return
errors
.
New
(
"get physical channels failed, illegal channel length, collectionID = "
+
fmt
.
Sprintln
(
collectionID
))
}
log
.
Debug
(
"
g
et physical channels done"
,
log
.
Debug
(
"
G
et physical channels done"
,
zap
.
Any
(
"collectionID"
,
collectionID
),
)
...
...
@@ -226,10 +226,10 @@ func (w *watchDmChannelsTask) Execute(ctx context.Context) error {
// add flow graph
if
loadPartition
{
w
.
node
.
streaming
.
dataSyncService
.
addPartitionFlowGraph
(
collectionID
,
partitionID
,
vChannels
)
log
.
Debug
(
"
q
uery node add partition flow graphs"
,
zap
.
Any
(
"channels"
,
vChannels
))
log
.
Debug
(
"
Q
uery node add partition flow graphs"
,
zap
.
Any
(
"channels"
,
vChannels
))
}
else
{
w
.
node
.
streaming
.
dataSyncService
.
addCollectionFlowGraph
(
collectionID
,
vChannels
)
log
.
Debug
(
"
q
uery node add collection flow graphs"
,
zap
.
Any
(
"channels"
,
vChannels
))
log
.
Debug
(
"
Q
uery node add collection flow graphs"
,
zap
.
Any
(
"channels"
,
vChannels
))
}
// add tSafe watcher if queryCollection exists
...
...
@@ -290,7 +290,7 @@ func (w *watchDmChannelsTask) Execute(ctx context.Context) error {
}
}
}
log
.
Debug
(
"
s
eek all channel done"
,
log
.
Debug
(
"
S
eek all channel done"
,
zap
.
Any
(
"collectionID"
,
collectionID
),
zap
.
Any
(
"toSeekChannels"
,
toSeekChannels
))
...
...
@@ -339,7 +339,7 @@ func (l *loadSegmentsTask) PreExecute(ctx context.Context) error {
func
(
l
*
loadSegmentsTask
)
Execute
(
ctx
context
.
Context
)
error
{
// TODO: support db
log
.
Debug
(
"
q
uery node load segment"
,
zap
.
String
(
"loadSegmentRequest"
,
fmt
.
Sprintln
(
l
.
req
)))
log
.
Debug
(
"
Q
uery node load segment"
,
zap
.
String
(
"loadSegmentRequest"
,
fmt
.
Sprintln
(
l
.
req
)))
var
err
error
// init meta
...
...
@@ -444,7 +444,7 @@ func (r *releaseCollectionTask) PreExecute(ctx context.Context) error {
}
func
(
r
*
releaseCollectionTask
)
Execute
(
ctx
context
.
Context
)
error
{
log
.
Debug
(
"
receiv
e release collection task"
,
zap
.
Any
(
"collectionID"
,
r
.
req
.
CollectionID
))
log
.
Debug
(
"
Execut
e release collection task"
,
zap
.
Any
(
"collectionID"
,
r
.
req
.
CollectionID
))
errMsg
:=
"release collection failed, collectionID = "
+
strconv
.
FormatInt
(
r
.
req
.
CollectionID
,
10
)
+
", err = "
collection
,
err
:=
r
.
node
.
streaming
.
replica
.
getCollectionByID
(
r
.
req
.
CollectionID
)
if
err
!=
nil
{
...
...
@@ -458,7 +458,7 @@ func (r *releaseCollectionTask) Execute(ctx context.Context) error {
// sleep to wait for query tasks done
const
gracefulReleaseTime
=
1
time
.
Sleep
(
gracefulReleaseTime
*
time
.
Second
)
log
.
Debug
(
"
s
tarting release collection..."
,
log
.
Debug
(
"
S
tarting release collection..."
,
zap
.
Any
(
"collectionID"
,
r
.
req
.
CollectionID
),
)
...
...
@@ -477,7 +477,7 @@ func (r *releaseCollectionTask) Execute(ctx context.Context) error {
// remove all tSafes of the target collection
for
_
,
channel
:=
range
collection
.
getVChannels
()
{
log
.
Debug
(
"
r
eleasing tSafe in releaseCollectionTask..."
,
log
.
Debug
(
"
R
eleasing tSafe in releaseCollectionTask..."
,
zap
.
Any
(
"collectionID"
,
r
.
req
.
CollectionID
),
zap
.
Any
(
"vChannel"
,
channel
),
)
...
...
@@ -546,7 +546,7 @@ func (r *releasePartitionsTask) PreExecute(ctx context.Context) error {
}
func
(
r
*
releasePartitionsTask
)
Execute
(
ctx
context
.
Context
)
error
{
log
.
Debug
(
"
receiv
e release partition task"
,
log
.
Debug
(
"
Execut
e release partition task"
,
zap
.
Any
(
"collectionID"
,
r
.
req
.
CollectionID
),
zap
.
Any
(
"partitionIDs"
,
r
.
req
.
PartitionIDs
))
errMsg
:=
"release partitions failed, collectionID = "
+
strconv
.
FormatInt
(
r
.
req
.
CollectionID
,
10
)
+
", err = "
...
...
@@ -574,7 +574,7 @@ func (r *releasePartitionsTask) Execute(ctx context.Context) error {
r
.
node
.
streaming
.
dataSyncService
.
removePartitionFlowGraph
(
id
)
// remove all tSafes of the target partition
for
_
,
channel
:=
range
vChannels
{
log
.
Debug
(
"
r
eleasing tSafe in releasePartitionTask..."
,
log
.
Debug
(
"
R
eleasing tSafe in releasePartitionTask..."
,
zap
.
Any
(
"collectionID"
,
r
.
req
.
CollectionID
),
zap
.
Any
(
"partitionID"
,
id
),
zap
.
Any
(
"vChannel"
,
channel
),
...
...
@@ -613,7 +613,7 @@ func (r *releasePartitionsTask) Execute(ctx context.Context) error {
// release global segment info
r
.
node
.
historical
.
removeGlobalSegmentIDsByPartitionIds
(
r
.
req
.
PartitionIDs
)
log
.
Debug
(
"
r
elease partition task done"
,
log
.
Debug
(
"
R
elease partition task done"
,
zap
.
Any
(
"collectionID"
,
r
.
req
.
CollectionID
),
zap
.
Any
(
"partitionIDs"
,
r
.
req
.
PartitionIDs
))
return
nil
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录