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 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,