mirror of https://github.com/milvus-io/milvus.git
add more logging for bg_error break
Former-commit-id: 3d3ddbe93c0770968d0ac4f86b82c0a94c0fa341pull/191/head
parent
813afe7907
commit
a8368f5846
|
@ -395,7 +395,7 @@ void DBImpl::BackgroundCompaction(std::set<std::string> table_ids) {
|
||||||
for (auto& table_id : table_ids) {
|
for (auto& table_id : table_ids) {
|
||||||
status = BackgroundMergeFiles(table_id);
|
status = BackgroundMergeFiles(table_id);
|
||||||
if (!status.ok()) {
|
if (!status.ok()) {
|
||||||
ENGINE_LOG_ERROR << "BGERROR found during merge files!";
|
ENGINE_LOG_ERROR << "BGERROR found during merge files: " << status.ToString();
|
||||||
bg_error_ = status;
|
bg_error_ = status;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -540,7 +540,7 @@ void DBImpl::BackgroundBuildIndex() {
|
||||||
for (auto& file : to_index_files) {
|
for (auto& file : to_index_files) {
|
||||||
status = BuildIndex(file);
|
status = BuildIndex(file);
|
||||||
if (!status.ok()) {
|
if (!status.ok()) {
|
||||||
ENGINE_LOG_ERROR << "BGERROR found during build index!";
|
ENGINE_LOG_ERROR << "BGERROR found during build index: " << status.ToString();
|
||||||
bg_error_ = status;
|
bg_error_ = status;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue