Skip to content

branch-4.0: [fix](cloud) Prevent tablet KV leak after partial recycle failure #63377#65249

Merged
morningman merged 1 commit into
apache:branch-4.0from
wyxxxcat:pick_63377_4_0
Jul 6, 2026
Merged

branch-4.0: [fix](cloud) Prevent tablet KV leak after partial recycle failure #63377#65249
morningman merged 1 commit into
apache:branch-4.0from
wyxxxcat:pick_63377_4_0

Conversation

@wyxxxcat

@wyxxxcat wyxxxcat commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator

pick: #63377

…ache#63377)

recycle_tablets now deletes KV entries only for tablets whose object
cleanup succeeded.
On partial deletion failure, it returns -1 while preserving KV
consistency for failed tablets, so retry can succeed later.
Added a regression/unit test for partial recycle failure, plus a test
sync point in SyncExecutor.
@wyxxxcat wyxxxcat requested a review from morningman as a code owner July 6, 2026 07:39
@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?

@wyxxxcat

wyxxxcat commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator Author

run buildall

@hello-stephen

Copy link
Copy Markdown
Contributor

Cloud UT Coverage Report

Increment line coverage 95.31% (61/64) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 78.56% (1854/2360)
Line Coverage 65.33% (33222/50851)
Region Coverage 65.72% (16398/24952)
Branch Coverage 56.35% (8753/15534)

@wyxxxcat

wyxxxcat commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator Author

/review

@github-actions github-actions Bot 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.

Automated review complete for #65249 at head d3f6ba4.

Summary: requesting changes for one correctness issue in the partial tablet recycle failure path. The new cleanup logic is covered by a test-only executor mode, but the production cancellation path still returns before successful tablets have their KVs removed.

Critical checkpoints:

  • Prompt/readiness: read the review prompt first. No required AGENTS.md files were listed, and no repo-local code-review SKILL.md was present after hidden-path search.
  • Scope: reviewed all six changed files, surrounding recycler/executor control flow, current GitHub PR patch metadata, and existing review context. No existing inline comments were present to deduplicate against.
  • Validation: static review plus git diff --check. I did not run cloud tests because this checkout has no existing build tree or prebuilt recycler_test binary.
  • User focus: no additional user-provided review focus was supplied.

Subagent conclusions:

  • optimizer-rewrite appended NO_CANDIDATES_INITIAL; no optimizer/rewrite or parallel join/aggregate issue was found.
  • tests-session-config proposed TSC-001, which was independently verified and accepted as MAIN-001 for the inline comment below.
  • Convergence round 1 ended with both live subagents replying NO_NEW_VALUABLE_FINDINGS for the same current ledger/comment set after MAIN-001 was accepted.

Comment thread cloud/src/recycler/recycler.cpp
@morningman morningman merged commit 0938efb into apache:branch-4.0 Jul 6, 2026
30 of 32 checks passed
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