Skip to content

branch-4.0: [fix](cloud) Preserve resource IDs when recycling empty rowsets #65862 - #65922

Merged
morningman merged 1 commit into
branch-4.0from
auto-pick-65862-branch-4.0
Jul 27, 2026
Merged

branch-4.0: [fix](cloud) Preserve resource IDs when recycling empty rowsets #65862#65922
morningman merged 1 commit into
branch-4.0from
auto-pick-65862-branch-4.0

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Cherry-picked from #65862

### What problem does this PR solve?

Issue Number: close #xxx

Related PR: #64630

Problem Summary: When a dropped tablet contains only empty rowsets, the
recycler
skips every rowset before collecting its resource ID. As a result,
resource_ids remains empty and no tablet directory deletion is
scheduled.
Metadata is then removed and the tablet is marked as recycled, leaving
temporary objects from failed writes orphaned in object storage.

Allow empty rowsets with a valid resource ID to participate in
tablet-level
directory cleanup, while continuing to skip empty rowsets without a
resource
ID and reject non-empty rowsets with a missing resource ID.
@github-actions
github-actions Bot requested a review from morningman as a code owner July 22, 2026 14:21
@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

@morningman
morningman merged commit 013b980 into branch-4.0 Jul 27, 2026
27 of 30 checks passed
@github-actions
github-actions Bot deleted the auto-pick-65862-branch-4.0 branch July 27, 2026 09:42
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.

3 participants