未验证 提交 80ac456c 编写于 作者: C congqixia 提交者: GitHub

Normalize dmInputNode log (#9652)

Signed-off-by: NCongqi Xia <congqi.xia@zilliz.com>
上级 f8054a40
......@@ -13,13 +13,14 @@ package datanode
import (
"context"
"strconv"
"fmt"
"github.com/milvus-io/milvus/internal/log"
"github.com/milvus-io/milvus/internal/msgstream"
"github.com/milvus-io/milvus/internal/proto/internalpb"
"github.com/milvus-io/milvus/internal/rootcoord"
"github.com/milvus-io/milvus/internal/util/flowgraph"
"go.uber.org/zap"
)
// DmInputNode receives messages from message streams, packs messages between two timeticks, and passes all
......@@ -30,7 +31,8 @@ func newDmInputNode(ctx context.Context, factory msgstream.Factory, collID Uniqu
maxParallelism := Params.FlowGraphMaxParallelism
// subName should be unique, since pchannelName is shared among several collections
consumeSubName := Params.MsgChannelSubName + "-" + strconv.FormatInt(collID, 10)
// consumeSubName := Params.MsgChannelSubName + "-" + strconv.FormatInt(collID, 10)
consumeSubName := fmt.Sprintf("%s-%d", Params.MsgChannelSubName, collID)
insertStream, err := factory.NewTtMsgStream(ctx)
if err != nil {
return nil, err
......@@ -40,7 +42,7 @@ func newDmInputNode(ctx context.Context, factory msgstream.Factory, collID Uniqu
// 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)
log.Debug("datanode AsConsumer", zap.String("physical channel", pchannelName), zap.String("subName", consumeSubName))
if seekPos != nil {
seekPos.ChannelName = pchannelName
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册