Add error description (#27959)

Signed-off-by: lixinguo <xinguo.li@zilliz.com>
Co-authored-by: lixinguo <xinguo.li@zilliz.com>
pull/27983/head
smellthemoon 2023-10-27 10:10:13 +08:00 committed by GitHub
parent 6b1a106a31
commit 403c6680cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -537,7 +537,8 @@ func (node *DataNode) FlushChannels(ctx context.Context, req *datapb.FlushChanne
for _, channel := range req.GetChannels() {
fg, ok := node.flowgraphManager.getFlowgraphService(channel)
if !ok {
return merr.Status(merr.WrapErrChannelNotFound(channel)), nil
msg := "may channel has not watched yet"
return merr.Status(merr.WrapErrChannelNotFound(channel, msg)), nil
}
fg.channel.setFlushTs(req.GetFlushTs())
}