Copilot commented on code in PR #51984: URL: https://github.com/apache/doris/pull/51984#discussion_r2157077466
########## be/src/olap/rowset/segment_v2/inverted_index_file_writer.cpp: ########## @@ -266,6 +266,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"; Review Comment: [nitpick] Consider including the full file path or segment identifiers in the log message for better traceability when debugging. ```suggestion LOG(WARNING) << "InvertedIndexFileWriter::copyFile: " << dir->getFullPath(fileName) << " is empty"; ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org