Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions be/src/storage/index/inverted/inverted_index_reader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -269,10 +269,10 @@ Status InvertedIndexReader::match_index_search(
query->search(*term_match_bitmap);
}
} catch (const CLuceneError& e) {
return Status::Error<ErrorCode::INVERTED_INDEX_CLUCENE_ERROR>("CLuceneError occured: {}",
return Status::Error<ErrorCode::INVERTED_INDEX_CLUCENE_ERROR>("CLuceneError occurred: {}",
e.what());
} catch (const Exception& e) {
return Status::Error<ErrorCode::INVERTED_INDEX_CLUCENE_ERROR>("Exception occured: {}",
return Status::Error<ErrorCode::INVERTED_INDEX_CLUCENE_ERROR>("Exception occurred: {}",
e.what());
}
return Status::OK();
Expand Down Expand Up @@ -389,7 +389,7 @@ Status FullTextIndexReader::query(const IndexQueryContextPtr& context,
return Status::OK();
} catch (const CLuceneError& e) {
return Status::Error<ErrorCode::INVERTED_INDEX_CLUCENE_ERROR>(
"CLuceneError occured, error msg: {}", e.what());
"CLuceneError occurred, error msg: {}", e.what());
}
}

Expand Down
2 changes: 1 addition & 1 deletion be/src/storage/storage_engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ static Status load_data_dirs(const std::vector<DataDir*>& data_dirs) {

auto st = data_dir->load();
if (!st.ok()) {
LOG(WARNING) << "error occured when init load tables. res=" << st
LOG(WARNING) << "error occurred when init load tables. res=" << st
<< ", data dir=" << data_dir->path();
std::lock_guard lock(result_mtx);
result = std::move(st);
Expand Down
12 changes: 6 additions & 6 deletions be/src/storage/task/index_builder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ Status IndexBuilder::handle_single_rowset(RowsetMetaSharedPtr output_rowset_meta
})
} catch (const std::exception& e) {
return Status::Error<ErrorCode::INVERTED_INDEX_CLUCENE_ERROR>(
"CLuceneError occured: {}", e.what());
"CLuceneError occurred: {}", e.what());
}

if (inverted_index_builder) {
Expand Down Expand Up @@ -540,7 +540,7 @@ Status IndexBuilder::handle_single_rowset(RowsetMetaSharedPtr output_rowset_meta
})
} catch (const std::exception& e) {
return Status::Error<ErrorCode::INVERTED_INDEX_CLUCENE_ERROR>(
"CLuceneError occured: {}", e.what());
"CLuceneError occurred: {}", e.what());
}

if (index_writer) {
Expand Down Expand Up @@ -623,7 +623,7 @@ Status IndexBuilder::handle_single_rowset(RowsetMetaSharedPtr output_rowset_meta
})
} catch (const std::exception& e) {
return Status::Error<ErrorCode::INVERTED_INDEX_CLUCENE_ERROR>(
"CLuceneError occured: {}", e.what());
"CLuceneError occurred: {}", e.what());
}
}

Expand Down Expand Up @@ -736,7 +736,7 @@ Status IndexBuilder::_add_nullable(const std::string& column_name,
_index_column_writers[index_writer_sign]->add_array_nulls(null_map, num_rows));
} catch (const std::exception& e) {
return Status::Error<ErrorCode::INVERTED_INDEX_CLUCENE_ERROR>(
"CLuceneError occured: {}", e.what());
"CLuceneError occurred: {}", e.what());
}

return Status::OK();
Expand Down Expand Up @@ -769,7 +769,7 @@ Status IndexBuilder::_add_nullable(const std::string& column_name,
{ _CLTHROWA(CL_ERR_IO, "debug point: _add_nullable_throw_exception"); })
} while (offset < num_rows);
} catch (const std::exception& e) {
return Status::Error<ErrorCode::INVERTED_INDEX_CLUCENE_ERROR>("CLuceneError occured: {}",
return Status::Error<ErrorCode::INVERTED_INDEX_CLUCENE_ERROR>("CLuceneError occurred: {}",
e.what());
}

Expand Down Expand Up @@ -802,7 +802,7 @@ Status IndexBuilder::_add_data(const std::string& column_name,
DBUG_EXECUTE_IF("IndexBuilder::_add_data_throw_exception",
{ _CLTHROWA(CL_ERR_IO, "debug point: _add_data_throw_exception"); })
} catch (const std::exception& e) {
return Status::Error<ErrorCode::INVERTED_INDEX_CLUCENE_ERROR>("CLuceneError occured: {}",
return Status::Error<ErrorCode::INVERTED_INDEX_CLUCENE_ERROR>("CLuceneError occurred: {}",
e.what());
}

Expand Down
Loading