enhance: Avoid search querynode return nil status in response (#34100)

Signed-off-by: Wei Liu <wei.liu@zilliz.com>
This commit is contained in:
wei liu 2024-06-26 11:50:11 +08:00 committed by GitHub
parent a933f6731b
commit 45203425fd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -798,6 +798,7 @@ func (node *QueryNode) Search(ctx context.Context, req *querypb.SearchRequest) (
resp.Status = merr.Status(err2)
return resp, nil
}
result.Status = merr.Success()
reduceLatency := tr.RecordSpan()
metrics.QueryNodeReduceLatency.