mirror of https://github.com/milvus-io/milvus.git
Fix segment leaked if task canceled (#26685)
Signed-off-by: yah01 <yah2er0ne@outlook.com>pull/26710/head
parent
7d5a4b2994
commit
bfcc691129
|
@ -234,6 +234,8 @@ func (loader *segmentLoader) Load(ctx context.Context,
|
|||
|
||||
// Wait for all segments loaded
|
||||
if err := loader.waitSegmentLoadDone(ctx, segmentType, lo.Map(segments, func(info *querypb.SegmentLoadInfo, _ int) int64 { return info.GetSegmentID() })...); err != nil {
|
||||
clearAll()
|
||||
log.Warn("failed to wait the filtered out segments load done", zap.Error(err))
|
||||
return nil, err
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue