release collection synchronously (#5798)

Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
pull/5807/head
bigsheeper 2021-06-16 15:31:57 +08:00 committed by GitHub
parent bf39644457
commit d6f7fbf19f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -400,7 +400,7 @@ func (r *releaseCollectionTask) Execute(ctx context.Context) error {
collection.setReleaseTime(r.req.Base.Timestamp)
const gracefulReleaseTime = 3
go func() {
func() { // release synchronously
errMsg := "release collection failed, collectionID = " + strconv.FormatInt(r.req.CollectionID, 10) + ", err = "
time.Sleep(gracefulReleaseTime * time.Second)