delete contex timeout in queryService's load (#4986)

Signed-off-by: xige-16 <xi.ge@zilliz.com>
This commit is contained in:
xige-16 2021-04-22 09:23:49 +08:00 committed by GitHub
parent 139b334732
commit 3bb69430cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -178,12 +178,10 @@ func (qs *QueryService) LoadCollection(ctx context.Context, req *querypb.LoadCol
return status, err
}
}
loadCtx, cancel := context.WithTimeout(qs.loopCtx, 30*time.Second)
loadCollectionTask := &LoadCollectionTask{
BaseTask: BaseTask{
ctx: loadCtx,
cancel: cancel,
Condition: NewTaskCondition(loadCtx),
ctx: qs.loopCtx,
Condition: NewTaskCondition(qs.loopCtx),
},
LoadCollectionRequest: req,
masterService: qs.masterServiceClient,
@ -283,12 +281,10 @@ func (qs *QueryService) LoadPartitions(ctx context.Context, req *querypb.LoadPar
return status, err
}
releaseCtx, cancel := context.WithTimeout(qs.loopCtx, 30*time.Second)
loadPartitionTask := &LoadPartitionTask{
BaseTask: BaseTask{
ctx: releaseCtx,
cancel: cancel,
Condition: NewTaskCondition(releaseCtx),
ctx: qs.loopCtx,
Condition: NewTaskCondition(qs.loopCtx),
},
LoadPartitionsRequest: req,
masterService: qs.masterServiceClient,