Skip to content

Commit

Permalink
[Fix](inverted index) fix bkd index file is empty error status (#35280)
Browse files Browse the repository at this point in the history
  • Loading branch information
airborne12 authored May 24, 2024
1 parent c6013c4 commit 54bc272
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion be/src/olap/rowset/segment_v2/inverted_index_reader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -933,7 +933,7 @@ Status BkdIndexReader::get_bkd_reader(std::shared_ptr<lucene::util::bkd::bkd_rea
*bkdReader = std::make_shared<lucene::util::bkd::bkd_reader>(data_in.release());
if (0 == (*bkdReader)->read_meta(meta_in.get())) {
VLOG_NOTICE << "bkd index file is empty:" << _compoundReader->toString();
return Status::EndOfFile("bkd index file is empty");
return Status::Error<ErrorCode::INVERTED_INDEX_FILE_NOT_FOUND>("bkd index file is empty");
}

(*bkdReader)->read_index(index_in.get());
Expand Down

0 comments on commit 54bc272

Please sign in to comment.