mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-03 12:29:36 +08:00
delete contex timeout in queryService's load (#4986)
Signed-off-by: xige-16 <xi.ge@zilliz.com>
This commit is contained in:
parent
139b334732
commit
3bb69430cb
@ -178,12 +178,10 @@ func (qs *QueryService) LoadCollection(ctx context.Context, req *querypb.LoadCol
|
|||||||
return status, err
|
return status, err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
loadCtx, cancel := context.WithTimeout(qs.loopCtx, 30*time.Second)
|
|
||||||
loadCollectionTask := &LoadCollectionTask{
|
loadCollectionTask := &LoadCollectionTask{
|
||||||
BaseTask: BaseTask{
|
BaseTask: BaseTask{
|
||||||
ctx: loadCtx,
|
ctx: qs.loopCtx,
|
||||||
cancel: cancel,
|
Condition: NewTaskCondition(qs.loopCtx),
|
||||||
Condition: NewTaskCondition(loadCtx),
|
|
||||||
},
|
},
|
||||||
LoadCollectionRequest: req,
|
LoadCollectionRequest: req,
|
||||||
masterService: qs.masterServiceClient,
|
masterService: qs.masterServiceClient,
|
||||||
@ -283,12 +281,10 @@ func (qs *QueryService) LoadPartitions(ctx context.Context, req *querypb.LoadPar
|
|||||||
return status, err
|
return status, err
|
||||||
}
|
}
|
||||||
|
|
||||||
releaseCtx, cancel := context.WithTimeout(qs.loopCtx, 30*time.Second)
|
|
||||||
loadPartitionTask := &LoadPartitionTask{
|
loadPartitionTask := &LoadPartitionTask{
|
||||||
BaseTask: BaseTask{
|
BaseTask: BaseTask{
|
||||||
ctx: releaseCtx,
|
ctx: qs.loopCtx,
|
||||||
cancel: cancel,
|
Condition: NewTaskCondition(qs.loopCtx),
|
||||||
Condition: NewTaskCondition(releaseCtx),
|
|
||||||
},
|
},
|
||||||
LoadPartitionsRequest: req,
|
LoadPartitionsRequest: req,
|
||||||
masterService: qs.masterServiceClient,
|
masterService: qs.masterServiceClient,
|
||||||
|
Loading…
Reference in New Issue
Block a user