-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[fix](inverted index) fix error when open empty index file #51393
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
|
run buildall |
TPC-H: Total hot run time: 34007 ms |
TPC-DS: Total hot run time: 192460 ms |
ClickBench: Total hot run time: 29.12 s |
BE UT Coverage ReportIncrement line coverage Increment coverage report
|
BE Regression && UT Coverage ReportIncrement line coverage Increment coverage report
|
1 similar comment
BE Regression && UT Coverage ReportIncrement line coverage Increment coverage report
|
BE Regression && UT Coverage ReportIncrement line coverage Increment coverage report
|
5f5041d to
f79a685
Compare
|
run buildall |
TPC-H: Total hot run time: 34030 ms |
TPC-DS: Total hot run time: 192980 ms |
ClickBench: Total hot run time: 29.2 s |
f79a685 to
2596de1
Compare
|
run buildall |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR fixes the error that occurs when attempting to open an empty inverted index file by adding a proper empty file check and error reporting.
- Added a condition to verify if the file size is zero.
- Sets an error message and returns false to prevent CLucene errors.
Comments suppressed due to low confidence (1)
be/src/olap/rowset/segment_v2/inverted_index_fs_directory.cpp:116
- Consider caching h->_reader->size() in a local variable to avoid multiple calls, ensuring consistency and potentially improving performance.
if (h->_reader->size() == 0) {
TPC-H: Total hot run time: 33757 ms |
TPC-DS: Total hot run time: 186117 ms |
ClickBench: Total hot run time: 28.51 s |
BE UT Coverage ReportIncrement line coverage Increment coverage report
|
BE Regression && UT Coverage ReportIncrement line coverage Increment coverage report
|
2596de1 to
b69af6d
Compare
csun5285
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
PR approved by anyone and no changes requested. |
|
run buildall |
eldenmoon
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
PR approved by at least one committer and no changes requested. |
zzzxl1993
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
TPC-H: Total hot run time: 34034 ms |
TPC-DS: Total hot run time: 186501 ms |
ClickBench: Total hot run time: 29.25 s |
BE UT Coverage ReportIncrement line coverage Increment coverage report
|
BE Regression && UT Coverage ReportIncrement line coverage Increment coverage report
|
Related PR: #50937 Problem Summary: This PR fixes the error that occurs when attempting to open an empty inverted index file by adding a proper empty file check and error reporting. Added a condition to verify if the file size is zero. Sets an error message and returns false to prevent CLucene errors.
) Related PR: apache#50937 Problem Summary: This PR fixes the error that occurs when attempting to open an empty inverted index file by adding a proper empty file check and error reporting. Added a condition to verify if the file size is zero. Sets an error message and returns false to prevent CLucene errors.
Related PR: #51393 Problem Summary: This PR ensures that copying an empty inverted index segment no longer throws an exception.
…#51984) Related PR: apache#51393 Problem Summary: This PR ensures that copying an empty inverted index segment no longer throws an exception.
…#51984) Related PR: apache#51393 Problem Summary: This PR ensures that copying an empty inverted index segment no longer throws an exception.
…#51984) Related PR: apache#51393 Problem Summary: This PR ensures that copying an empty inverted index segment no longer throws an exception.
What problem does this PR solve?
Issue Number: close #xxx
Related PR: #50937
Problem Summary:
This PR fixes the error that occurs when attempting to open an empty inverted index file by adding a proper empty file check and error reporting.
Added a condition to verify if the file size is zero.
Sets an error message and returns false to prevent CLucene errors.
Release note
None
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)