Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
milvus
milvus
提交
ebb9b24b
M
milvus
项目概览
milvus
/
milvus
12 个月 前同步成功
通知
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,发现更多精彩内容 >>
未验证
提交
ebb9b24b
编写于
12月 30, 2021
作者:
J
Jiquan Long
提交者:
GitHub
12月 30, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Improve name of flowgraph node (#14538)
Signed-off-by:
N
dragondriver
<
jiquan.long@zilliz.com
>
上级
d5e6adf3
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
17 addition
and
9 deletion
+17
-9
internal/datanode/flow_graph_dd_node.go
internal/datanode/flow_graph_dd_node.go
+2
-1
internal/datanode/flow_graph_dd_node_test.go
internal/datanode/flow_graph_dd_node_test.go
+2
-1
internal/datanode/flow_graph_delete_node.go
internal/datanode/flow_graph_delete_node.go
+1
-1
internal/datanode/flow_graph_delete_node_test.go
internal/datanode/flow_graph_delete_node_test.go
+1
-1
internal/datanode/flow_graph_dmstream_input_node.go
internal/datanode/flow_graph_dmstream_input_node.go
+2
-1
internal/datanode/flow_graph_insert_buffer_node.go
internal/datanode/flow_graph_insert_buffer_node.go
+1
-1
internal/querynode/flow_graph_filter_delete_node.go
internal/querynode/flow_graph_filter_delete_node.go
+3
-1
internal/querynode/flow_graph_filter_dm_node.go
internal/querynode/flow_graph_filter_dm_node.go
+3
-1
internal/querynode/flow_graph_service_time_node.go
internal/querynode/flow_graph_service_time_node.go
+2
-1
未找到文件。
internal/datanode/flow_graph_dd_node.go
浏览文件 @
ebb9b24b
...
...
@@ -18,6 +18,7 @@ package datanode
import
(
"context"
"fmt"
"sync"
"sync/atomic"
...
...
@@ -68,7 +69,7 @@ type ddNode struct {
// Name returns node name, implementing flowgraph.Node
func
(
ddn
*
ddNode
)
Name
()
string
{
return
"ddNode"
return
fmt
.
Sprintf
(
"ddNode-%d-%s"
,
ddn
.
collectionID
,
ddn
.
vchannelName
)
}
// Operate handles input messages, implementing flowgrpah.Node
...
...
internal/datanode/flow_graph_dd_node_test.go
浏览文件 @
ebb9b24b
...
...
@@ -18,6 +18,7 @@ package datanode
import
(
"context"
"fmt"
"testing"
"github.com/stretchr/testify/assert"
...
...
@@ -90,7 +91,7 @@ func TestFlowGraph_DDNode_newDDNode(te *testing.T) {
for
_
,
seg
:=
range
ddNode
.
flushedSegments
{
flushedSegIDs
=
append
(
flushedSegIDs
,
seg
.
ID
)
}
assert
.
Equal
(
t
,
"ddNode"
,
ddNode
.
Name
())
assert
.
Equal
(
t
,
fmt
.
Sprintf
(
"ddNode-%d-%s"
,
ddNode
.
collectionID
,
ddNode
.
vchannelName
)
,
ddNode
.
Name
())
assert
.
Equal
(
t
,
test
.
inCollID
,
ddNode
.
collectionID
)
assert
.
Equal
(
t
,
len
(
test
.
inFlushedSegs
),
len
(
ddNode
.
flushedSegments
))
assert
.
ElementsMatch
(
t
,
test
.
inFlushedSegs
,
flushedSegIDs
)
...
...
internal/datanode/flow_graph_delete_node.go
浏览文件 @
ebb9b24b
...
...
@@ -91,7 +91,7 @@ func newDelDataBuf() *DelDataBuf {
}
func
(
dn
*
deleteNode
)
Name
()
string
{
return
"deleteNode
"
return
"deleteNode
-"
+
dn
.
channelName
}
func
(
dn
*
deleteNode
)
Close
()
{
...
...
internal/datanode/flow_graph_delete_node_test.go
浏览文件 @
ebb9b24b
...
...
@@ -121,7 +121,7 @@ func TestFlowGraphDeleteNode_newDeleteNode(te *testing.T) {
assert
.
Nil
(
t
,
err
)
assert
.
NotNil
(
t
,
dn
)
assert
.
Equal
(
t
,
"deleteNode
"
,
dn
.
Name
())
assert
.
Equal
(
t
,
"deleteNode
-"
+
dn
.
channelName
,
dn
.
Name
())
dn
.
Close
()
})
}
...
...
internal/datanode/flow_graph_dmstream_input_node.go
浏览文件 @
ebb9b24b
...
...
@@ -57,6 +57,7 @@ func newDmInputNode(ctx context.Context, seekPos *internalpb.MsgPosition, dmNode
log
.
Debug
(
"datanode Seek successfully"
,
zap
.
String
(
"Channel Name"
,
seekPos
.
GetChannelName
()),
zap
.
Duration
(
"elapse"
,
time
.
Since
(
start
)))
}
node
:=
flowgraph
.
NewInputNode
(
insertStream
,
"dmInputNode"
,
dmNodeConfig
.
maxQueueLength
,
dmNodeConfig
.
maxParallelism
)
name
:=
fmt
.
Sprintf
(
"dmInputNode-%d-%s"
,
dmNodeConfig
.
collectionID
,
dmNodeConfig
.
vChannelName
)
node
:=
flowgraph
.
NewInputNode
(
insertStream
,
name
,
dmNodeConfig
.
maxQueueLength
,
dmNodeConfig
.
maxParallelism
)
return
node
,
nil
}
internal/datanode/flow_graph_insert_buffer_node.go
浏览文件 @
ebb9b24b
...
...
@@ -142,7 +142,7 @@ func (bd *BufferData) updateSize(no int64) {
}
func
(
ibNode
*
insertBufferNode
)
Name
()
string
{
return
"ibNode
"
return
"ibNode
-"
+
ibNode
.
channelName
}
func
(
ibNode
*
insertBufferNode
)
Close
()
{
...
...
internal/querynode/flow_graph_filter_delete_node.go
浏览文件 @
ebb9b24b
...
...
@@ -17,6 +17,8 @@
package
querynode
import
(
"fmt"
"github.com/opentracing/opentracing-go"
"go.uber.org/zap"
...
...
@@ -36,7 +38,7 @@ type filterDeleteNode struct {
// Name returns the name of filterDeleteNode
func
(
fddNode
*
filterDeleteNode
)
Name
()
string
{
return
"fdNode"
return
fmt
.
Sprintf
(
"fdNode-%d"
,
fddNode
.
collectionID
)
}
// Operate handles input messages, to filter invalid delete messages
...
...
internal/querynode/flow_graph_filter_dm_node.go
浏览文件 @
ebb9b24b
...
...
@@ -17,6 +17,8 @@
package
querynode
import
(
"fmt"
"github.com/opentracing/opentracing-go"
"go.uber.org/zap"
...
...
@@ -36,7 +38,7 @@ type filterDmNode struct {
// Name returns the name of filterDmNode
func
(
fdmNode
*
filterDmNode
)
Name
()
string
{
return
"fdmNode"
return
fmt
.
Sprintf
(
"fdmNode-%d"
,
fdmNode
.
collectionID
)
}
// Operate handles input messages, to filter invalid insert messages
...
...
internal/querynode/flow_graph_service_time_node.go
浏览文件 @
ebb9b24b
...
...
@@ -18,6 +18,7 @@ package querynode
import
(
"context"
"fmt"
"go.uber.org/zap"
...
...
@@ -37,7 +38,7 @@ type serviceTimeNode struct {
// Name returns the name of serviceTimeNode
func
(
stNode
*
serviceTimeNode
)
Name
()
string
{
return
"stNode"
return
fmt
.
Sprintf
(
"stNode-%d-%s"
,
stNode
.
collectionID
,
stNode
.
vChannel
)
}
// Close would close serviceTimeNode
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录