mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-07 01:28:27 +08:00
Fix log concat in querynode task execute (#13152)
Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
This commit is contained in:
parent
1dd8d2f397
commit
ee4d15aada
@ -17,7 +17,6 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"math/rand"
|
"math/rand"
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
@ -164,7 +163,7 @@ func (r *addQueryChannelTask) Execute(ctx context.Context) error {
|
|||||||
sc.queryMsgStream.AsConsumer(consumeChannels, consumeSubName)
|
sc.queryMsgStream.AsConsumer(consumeChannels, consumeSubName)
|
||||||
if r.req.SeekPosition == nil || len(r.req.SeekPosition.MsgID) == 0 {
|
if r.req.SeekPosition == nil || len(r.req.SeekPosition.MsgID) == 0 {
|
||||||
// as consumer
|
// as consumer
|
||||||
log.Debug("querynode AsConsumer: " + strings.Join(consumeChannels, ", ") + " : " + consumeSubName)
|
log.Debug("QueryNode AsConsumer", zap.Strings("channels", consumeChannels), zap.String("sub name", consumeSubName))
|
||||||
} else {
|
} else {
|
||||||
// seek query channel
|
// seek query channel
|
||||||
err = sc.queryMsgStream.Seek([]*internalpb.MsgPosition{r.req.SeekPosition})
|
err = sc.queryMsgStream.Seek([]*internalpb.MsgPosition{r.req.SeekPosition})
|
||||||
@ -179,7 +178,7 @@ func (r *addQueryChannelTask) Execute(ctx context.Context) error {
|
|||||||
// add result channel
|
// add result channel
|
||||||
producerChannels := []string{r.req.ResultChannelID}
|
producerChannels := []string{r.req.ResultChannelID}
|
||||||
sc.queryResultMsgStream.AsProducer(producerChannels)
|
sc.queryResultMsgStream.AsProducer(producerChannels)
|
||||||
log.Debug("querynode AsProducer: " + strings.Join(producerChannels, ", "))
|
log.Debug("QueryNode AsProducer", zap.Strings("channels", producerChannels))
|
||||||
|
|
||||||
// init global sealed segments
|
// init global sealed segments
|
||||||
for _, segment := range r.req.GlobalSealedSegments {
|
for _, segment := range r.req.GlobalSealedSegments {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user