This is an automated email from the ASF dual-hosted git repository.
dataroaring pushed a commit to branch branch-3.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-3.0 by this push:
new 5e3a14cb895 branch-3.0: [fix](inverted index) fix error when writing
empty index file #51984 (#52861)
5e3a14cb895 is described below
commit 5e3a14cb8950b3019b15f9ac6c823cf057774cb9
Author: airborne12 <[email protected]>
AuthorDate: Mon Jul 7 14:40:42 2025 +0800
branch-3.0: [fix](inverted index) fix error when writing empty index file
#51984 (#52861)
cherry pick from #51984
---
be/src/olap/rowset/segment_v2/inverted_index_file_writer.cpp | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/be/src/olap/rowset/segment_v2/inverted_index_file_writer.cpp
b/be/src/olap/rowset/segment_v2/inverted_index_file_writer.cpp
index fd6ae6d54af..36d82bad1f2 100644
--- a/be/src/olap/rowset/segment_v2/inverted_index_file_writer.cpp
+++ b/be/src/olap/rowset/segment_v2/inverted_index_file_writer.cpp
@@ -205,6 +205,10 @@ void InvertedIndexFileWriter::copyFile(const char*
fileName, lucene::store::Dire
err.set(CL_ERR_IO, "debug point: copyFile_openInput_error");
});
if (!open) {
+ if (err.number() == CL_ERR_EmptyIndexSegment) {
+ LOG(WARNING) << "InvertedIndexFileWriter::copyFile: " << fileName
<< " is empty";
+ return;
+ }
throw err;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]