You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by kx...@apache.org on 2023/07/06 12:01:09 UTC
[doris] 04/20: [fix](status) Return the correct error code when clucene error occured (#21511)
This is an automated email from the ASF dual-hosted git repository.
kxiao pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/doris.git
commit 4bb920040afc5ebca202979cda3ea9ab65848094
Author: YueW <45...@users.noreply.github.com>
AuthorDate: Thu Jul 6 09:08:11 2023 +0800
[fix](status) Return the correct error code when clucene error occured (#21511)
---
be/src/olap/task/index_builder.cpp | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/be/src/olap/task/index_builder.cpp b/be/src/olap/task/index_builder.cpp
index 4717dff9b3..1022daa113 100644
--- a/be/src/olap/task/index_builder.cpp
+++ b/be/src/olap/task/index_builder.cpp
@@ -166,7 +166,7 @@ Status IndexBuilder::handle_single_rowset(RowsetMetaSharedPtr output_rowset_meta
index_meta, fs));
} catch (const std::exception& e) {
LOG(WARNING) << "CLuceneError occured: " << e.what();
- return Status::Error<ErrorCode::IO_ERROR>();
+ return Status::Error<ErrorCode::INVERTED_INDEX_CLUCENE_ERROR>();
}
if (inverted_index_builder) {
@@ -222,7 +222,7 @@ Status IndexBuilder::handle_single_rowset(RowsetMetaSharedPtr output_rowset_meta
}
} catch (const std::exception& e) {
LOG(WARNING) << "CLuceneError occured: " << e.what();
- return Status::Error<ErrorCode::IO_ERROR>();
+ return Status::Error<ErrorCode::INVERTED_INDEX_CLUCENE_ERROR>();
}
}
@@ -311,7 +311,7 @@ Status IndexBuilder::_add_nullable(const std::string& column_name,
} while (offset < num_rows);
} catch (const std::exception& e) {
LOG(WARNING) << "CLuceneError occured: " << e.what();
- return Status::Error<ErrorCode::IO_ERROR>();
+ return Status::Error<ErrorCode::INVERTED_INDEX_CLUCENE_ERROR>();
}
return Status::OK();
@@ -332,7 +332,7 @@ Status IndexBuilder::_add_data(const std::string& column_name,
}
} catch (const std::exception& e) {
LOG(WARNING) << "CLuceneError occured: " << e.what();
- return Status::Error<ErrorCode::IO_ERROR>();
+ return Status::Error<ErrorCode::INVERTED_INDEX_CLUCENE_ERROR>();
}
return Status::OK();
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org