This is an automated email from the ASF dual-hosted git repository.
kxiao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new a2e679f767 [fix](status) Return the correct error code when clucene
error occured (#21511)
a2e679f767 is described below
commit a2e679f767a0f340197630d3ab2ddcd40d338d03
Author: YueW <[email protected]>
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: [email protected]
For additional commands, e-mail: [email protected]