Skip to content

branch-4.1: [fix](cloud) Recycle empty rowsets without resource id #64630#64643

Open
github-actions[bot] wants to merge 1 commit into
branch-4.1from
auto-pick-64630-branch-4.1
Open

branch-4.1: [fix](cloud) Recycle empty rowsets without resource id #64630#64643
github-actions[bot] wants to merge 1 commit into
branch-4.1from
auto-pick-64630-branch-4.1

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Cherry-picked from #64630

When recycling a dropped tablet, empty rowsets may have `num_segments ==
0` and an empty `resource_id`. The protobuf field can be explicitly set
to an empty string, so `has_resource_id()` returns true. The recycler
then attempts to look up an accessor for the empty ID, fails the recycle
round, and repeatedly leaves the dropped tablet/index metadata behind.

This PR skips object deletion for every rowset with zero segments
because it has no segment objects to remove. Rowsets with segments still
require a non-empty resource ID.
@github-actions github-actions Bot requested a review from yiguolei as a code owner June 18, 2026 12:09
@hello-stephen

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?

@hello-stephen

Copy link
Copy Markdown
Contributor

run buildall

@hello-stephen

Copy link
Copy Markdown
Contributor

Cloud UT Coverage Report

Increment line coverage 100.00% (6/6) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 77.24% (1877/2430)
Line Coverage 64.33% (33746/52456)
Region Coverage 64.81% (17379/26814)
Branch Coverage 53.94% (9287/17216)

Sign up for free to 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.

2 participants