Normalize datanode dminput node log (#12128)

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
pull/12133/head
congqixia 2021-11-19 14:21:13 +08:00 committed by GitHub
parent ee0f753f7a
commit 7e91bcf115
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -49,12 +49,12 @@ func newDmInputNode(ctx context.Context, seekPos *internalpb.MsgPosition, dmNode
if seekPos != nil { if seekPos != nil {
seekPos.ChannelName = pchannelName seekPos.ChannelName = pchannelName
start := time.Now() start := time.Now()
log.Debug("datanode begin to seek: " + seekPos.GetChannelName()) log.Debug("datanode begin to seek", zap.String("Channel Name", seekPos.GetChannelName()))
err = insertStream.Seek([]*internalpb.MsgPosition{seekPos}) err = insertStream.Seek([]*internalpb.MsgPosition{seekPos})
if err != nil { if err != nil {
return nil, err return nil, err
} }
log.Debug("datanode Seek successfully: "+seekPos.GetChannelName(), zap.Int64("elapse ", time.Since(start).Milliseconds())) 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) node := flowgraph.NewInputNode(insertStream, "dmInputNode", dmNodeConfig.maxQueueLength, dmNodeConfig.maxParallelism)