Fix the crash in BaseRequest (#5762)

Fix #5398

Signed-off-by: yhmo <yihua.mo@zilliz.com>
pull/5770/head
groot 2021-06-15 12:14:14 +08:00 committed by GitHub
parent a2ff18c40d
commit 96054dfafa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 3 deletions

View File

@ -5,10 +5,14 @@ Please mark all change in change log and use the issue from GitHub
# Milvus 1.1.1 (TBD)
## Bug
- \#4897 Query results contain some deleted ids
- \#5115 Relax restrictions on topk from 16384 to 1M for CPU search
- \#5164 Exception should be raised if insert or delete entity on the none-existed partition
- \#5191 Mishards throw "index out of range" error after continually search/insert for a period of time
- \#5398 Random crash after request is executed
- \#5537 Failed to load bloom filter after suddenly power off
- \#5544 Relax restrictions on index_file_size from 4GB to 128Gb
- \#5574 IVF_SQ8 and IVF_PQ cannot be built on multiple GPUs
- \#5747 Search with big nq and topk crash milvus
## Feature
- \#1434 Storage: enabling s3 storage support (implemented by Unisinsight)

View File

@ -108,8 +108,8 @@ BaseRequest::Execute() {
Status
BaseRequest::PostExecute() {
status_ = OnPostExecute();
return status_;
// not allow assign status_ here, because PostExecute() and Execute() are running on different threads
return OnPostExecute();
}
Status

View File

@ -213,12 +213,12 @@ class BaseRequest {
RequestType type_;
std::string request_group_;
bool async_;
Status status_;
private:
mutable std::mutex finish_mtx_;
std::condition_variable finish_cond_;
bool done_;
Status status_;
public:
const std::shared_ptr<milvus::server::Context>&