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 be92ae2f9b4 branch-3.0: [opt](inverted index) Add troubleshooting logs 
#44182 (#44291)
be92ae2f9b4 is described below

commit be92ae2f9b4c4b6635e85f6269192e5913cefaf0
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Fri Nov 29 19:32:31 2024 +0800

    branch-3.0: [opt](inverted index) Add troubleshooting logs #44182 (#44291)
    
    Cherry-picked from #44182
    
    Co-authored-by: zzzxl <yangs...@selectdb.com>
---
 be/src/olap/rowset/segment_v2/inverted_index_searcher.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/be/src/olap/rowset/segment_v2/inverted_index_searcher.cpp 
b/be/src/olap/rowset/segment_v2/inverted_index_searcher.cpp
index de8b494cd8b..5dfbd984813 100644
--- a/be/src/olap/rowset/segment_v2/inverted_index_searcher.cpp
+++ b/be/src/olap/rowset/segment_v2/inverted_index_searcher.cpp
@@ -34,6 +34,9 @@ Status 
FulltextIndexSearcherBuilder::build(lucene::store::Directory* directory,
         reader = lucene::index::IndexReader::open(
                 directory, config::inverted_index_read_buffer_size, 
close_directory);
     } catch (const CLuceneError& e) {
+        std::vector<std::string> file_names;
+        directory->list(&file_names);
+        LOG(ERROR) << fmt::format("Directory list: {}", fmt::join(file_names, 
", "));
         std::string msg = "FulltextIndexSearcherBuilder build error: " + 
std::string(e.what());
         if (e.number() == CL_ERR_EmptyIndexSegment) {
             return 
Status::Error<ErrorCode::INVERTED_INDEX_FILE_CORRUPTED>(msg);


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to