mirror of https://github.com/milvus-io/milvus.git
Add channel name check before querynode seek (#14169)
Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>pull/14183/head
parent
7a4de9897d
commit
c62457a6ea
|
@ -427,7 +427,12 @@ func (w *watchDmChannelsTask) Execute(ctx context.Context) error {
|
||||||
}
|
}
|
||||||
pos.MsgGroup = consumeSubName
|
pos.MsgGroup = consumeSubName
|
||||||
// use pChannel to seek
|
// use pChannel to seek
|
||||||
pos.ChannelName = VPChannels[fg.channel]
|
pChannel, ok := VPChannels[fg.channel]
|
||||||
|
if pChannel == "" || !ok {
|
||||||
|
log.Error("watch dm channel task found unmatched channel name", zap.Any("position", pos), zap.String("fg channel", fg.channel), zap.String("pchannel", pChannel))
|
||||||
|
return errors.New("empty pchannel found")
|
||||||
|
}
|
||||||
|
pos.ChannelName = pChannel
|
||||||
err = fg.seekQueryNodeFlowGraph(pos)
|
err = fg.seekQueryNodeFlowGraph(pos)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return errors.New("msgStream seek error :" + err.Error())
|
return errors.New("msgStream seek error :" + err.Error())
|
||||||
|
|
Loading…
Reference in New Issue