未验证 提交 5bb832e6 编写于 作者: X XuanYang-cn 提交者: GitHub

[skip ci]Add comment on flowgraph dmstream inputnode (#9359)

Signed-off-by: NYang Xuan <xuan.yang@zilliz.com>
上级 27143c60
......@@ -22,6 +22,9 @@ import (
"github.com/milvus-io/milvus/internal/util/flowgraph"
)
// DmInputNode receives messages from message streams, packs messages between two timeticks, and passes all
// messages between two timeticks to the following flowgraph node. In DataNode, the following flow graph node is
// flowgraph ddNode.
func newDmInputNode(ctx context.Context, factory msgstream.Factory, collID UniqueID, chanName string, seekPos *internalpb.MsgPosition) (*flowgraph.InputNode, error) {
maxQueueLength := Params.FlowGraphMaxQueueLength
maxParallelism := Params.FlowGraphMaxParallelism
......@@ -33,12 +36,13 @@ func newDmInputNode(ctx context.Context, factory msgstream.Factory, collID Uniqu
return nil, err
}
// MsgStream needs a physical channel name, but the channel name in seek position from DataCoord
// is virtual channel name, so we need to convert vchannel name into pchannel neme here.
pchannelName := rootcoord.ToPhysicalChannel(chanName)
insertStream.AsConsumer([]string{pchannelName}, consumeSubName)
log.Debug("datanode AsConsumer physical channel: " + pchannelName + " : " + consumeSubName)
if seekPos != nil {
// ChannelName in seek position is virtual channel name.
seekPos.ChannelName = pchannelName
log.Debug("datanode Seek: " + seekPos.GetChannelName())
insertStream.Seek([]*internalpb.MsgPosition{seekPos})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册