Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
milvus
milvus
提交
46699c4c
M
milvus
项目概览
milvus
/
milvus
11 个月 前同步成功
通知
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,发现更多精彩内容 >>
提交
46699c4c
编写于
6月 09, 2021
作者:
X
XuanYang-cn
提交者:
zhenshan.cao
6月 15, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix datanode dropcollection error (#5690)
Signed-off-by:
N
yangxuan
<
xuan.yang@zilliz.com
>
上级
351d8705
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
10 addition
and
2 deletion
+10
-2
internal/datanode/data_node.go
internal/datanode/data_node.go
+1
-0
internal/datanode/data_sync_service.go
internal/datanode/data_sync_service.go
+1
-1
internal/datanode/flow_graph_dd_node.go
internal/datanode/flow_graph_dd_node.go
+1
-1
internal/datanode/flow_graph_insert_buffer_node.go
internal/datanode/flow_graph_insert_buffer_node.go
+6
-0
internal/dataservice/server.go
internal/dataservice/server.go
+1
-0
未找到文件。
internal/datanode/data_node.go
浏览文件 @
46699c4c
...
...
@@ -184,6 +184,7 @@ func (node *DataNode) BackGroundGC(collIDCh <-chan UniqueID) {
node
.
ReleaseDataSyncService
(
vchanName
)
}
case
<-
node
.
ctx
.
Done
()
:
log
.
Info
(
"DataNode ctx done"
)
return
}
}
...
...
internal/datanode/data_sync_service.go
浏览文件 @
46699c4c
...
...
@@ -61,6 +61,7 @@ func newDataSyncService(ctx context.Context,
msFactory
:
factory
,
collectionID
:
vchan
.
GetCollectionID
(),
dataService
:
dataService
,
clearSignal
:
clearSignal
,
}
service
.
initNodes
(
vchan
)
...
...
@@ -71,7 +72,6 @@ func (dsService *dataSyncService) start() {
if
dsService
.
fg
!=
nil
{
log
.
Debug
(
"Data Sync Service starting flowgraph"
)
dsService
.
fg
.
Start
()
log
.
Debug
(
"Data Sync Service starting flowgraph Done"
)
}
else
{
log
.
Debug
(
"Data Sync Service flowgraph nil"
)
}
...
...
internal/datanode/flow_graph_dd_node.go
浏览文件 @
46699c4c
...
...
@@ -76,8 +76,8 @@ func (ddn *ddNode) Operate(in []flowgraph.Msg) []flowgraph.Msg {
switch
msg
.
Type
()
{
case
commonpb
.
MsgType_DropCollection
:
if
msg
.
(
*
msgstream
.
DropCollectionMsg
)
.
GetCollectionID
()
==
ddn
.
collectionID
{
log
.
Info
(
"Destroying current flowgraph"
,
zap
.
Any
(
"collectionID"
,
ddn
.
collectionID
))
ddn
.
clearSignal
<-
ddn
.
collectionID
log
.
Info
(
"Destroying current flowgraph"
)
}
case
commonpb
.
MsgType_Insert
:
log
.
Debug
(
"DDNode with insert messages"
)
...
...
internal/datanode/flow_graph_insert_buffer_node.go
浏览文件 @
46699c4c
...
...
@@ -760,6 +760,12 @@ func (ibNode *insertBufferNode) updateSegStatistics(segIDs []UniqueID) error {
log
.
Error
(
"get segment statistics updates wrong"
,
zap
.
Int64
(
"segmentID"
,
segID
),
zap
.
Error
(
err
))
continue
}
log
.
Debug
(
"Segment Statistics to Update"
,
zap
.
Int64
(
"Segment ID"
,
updates
.
GetSegmentID
()),
zap
.
Int64
(
"NumOfRows"
,
updates
.
GetNumRows
()),
)
statsUpdates
=
append
(
statsUpdates
,
updates
)
}
...
...
internal/dataservice/server.go
浏览文件 @
46699c4c
...
...
@@ -269,6 +269,7 @@ func (s *Server) startStatsChannel(ctx context.Context) {
zap
.
Stringer
(
"msgType"
,
msg
.
Type
()))
continue
}
log
.
Debug
(
"Receive DataNode segment statistics update"
)
ssMsg
:=
msg
.
(
*
msgstream
.
SegmentStatisticsMsg
)
for
_
,
stat
:=
range
ssMsg
.
SegStats
{
s
.
segmentManager
.
UpdateSegmentStats
(
stat
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录