mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-11-30 02:48:45 +08:00
fix: force update next target if target can't be loaded (#35366)
issue: #35361 pr: #35365 Signed-off-by: Wei Liu <wei.liu@zilliz.com>
This commit is contained in:
parent
b371467604
commit
b316040634
@ -821,6 +821,12 @@ func (scheduler *taskScheduler) remove(task Task) {
|
||||
zap.Int64("replicaID", task.ReplicaID()),
|
||||
zap.String("status", task.Status()),
|
||||
)
|
||||
|
||||
if errors.Is(task.Err(), merr.ErrSegmentNotFound) {
|
||||
log.Info("segment in target has been cleaned, trigger force update next target", zap.Int64("collectionID", task.CollectionID()))
|
||||
scheduler.targetMgr.UpdateCollectionNextTarget(task.CollectionID())
|
||||
}
|
||||
|
||||
task.Cancel(nil)
|
||||
scheduler.tasks.Remove(task.ID())
|
||||
scheduler.waitQueue.Remove(task)
|
||||
|
Loading…
Reference in New Issue
Block a user