Skip to content

branch-3.0: [fix](inverted index) fix error when open empty index file #51393 - #51438

Merged
dataroaring merged 1 commit into
branch-3.0from
auto-pick-51393-branch-3.0
Jun 11, 2025
Merged

branch-3.0: [fix](inverted index) fix error when open empty index file #51393#51438
dataroaring merged 1 commit into
branch-3.0from
auto-pick-51393-branch-3.0

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Cherry-picked from #51393

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.
@Thearas

Copy link
Copy Markdown
Contributor

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR.

Please clearly describe your PR:

  1. What problem was fixed (it's best to include specific error reporting information). How it was fixed.
  2. Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
  3. What features were added. Why was this function added?
  4. Which code was refactored and why was this part of the code refactored?
  5. Which functions were optimized and what is the difference before and after the optimization?

@Thearas

Copy link
Copy Markdown
Contributor

run buildall

@hello-stephen

Copy link
Copy Markdown
Contributor

BE UT Coverage Report

Increment line coverage 16.67% (1/6) 🎉

Increment coverage report
Complete coverage report

CategoryCoverage
Function Coverage41.08% (10864/26445)
Line Coverage31.92% (92902/291002)
Region Coverage31.00% (47917/154570)
Branch Coverage27.49% (24550/89308)

@dataroaringdataroaring left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dataroaring
dataroaring merged commit f23dae0 into branch-3.0Jun 11, 2025
@github-actions
github-actionsBot deleted the auto-pick-51393-branch-3.0 branch June 11, 2025 02:59
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@Thearas@hello-stephen@dataroaring@airborne12