Skip to content

branch-4.1: [fix](filecache) avoid crash when late holder cleanup sees removed cache cell #62437#63956

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

branch-4.1: [fix](filecache) avoid crash when late holder cleanup sees removed cache cell #62437#63956
github-actions[bot] wants to merge 1 commit into
branch-4.1from
auto-pick-62437-branch-4.1

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot commented Jun 1, 2026

Cherry-picked from #62437

…che cell (#62437)

Problem Summary:
When FileBlocksHolder is destroyed late, the corresponding file block
may already be removed or replaced in block file cache metadata.
`BlockFileCache::remove()` can dereference a stale cache cell during
duplicate cleanup and crash.

### Release note

None

### Check List (For Author)

- Test <!-- At least one of them must be included. -->
    - [ ] Regression test
    - [ ] Unit Test
    - [ ] Manual test (add detailed scripts or steps below)
    - [x] No need to test or manual test. Explain why:
- [ ] This is a refactor/code format and no logic has been changed.
        - [ ] Previous test can cover this change.
        - [ ] No code files have been changed.
        - [x] Other reason <!-- Add your reason?  -->
- Cherry-pick only. The picked commits already include BE unit-test
coverage, and no local build/test was requested for this task.

- Behavior changed:
    - [ ] No.
    - [x] Yes. <!-- Explain the behavior change -->
- Avoid crash when late holder cleanup sees a removed or replaced cache
cell, add warning logs for skipped duplicate remove, and add BE unit
tests for the stale/replaced-cell cleanup paths.

- Does this need documentation?
    - [x] No.
- [ ] Yes. <!-- Add document PR link here. eg:
apache/doris-website#1214 -->

### Check List (For Reviewer who merge this PR)

- [ ] Confirm the release note
- [ ] Confirm test cases
- [ ] Confirm document
- [ ] Add branch pick label <!-- Add branch pick label that this PR
should merge into -->
@github-actions github-actions Bot requested a review from yiguolei as a code owner June 1, 2026 08:39
@yiguolei
Copy link
Copy Markdown
Contributor

yiguolei commented Jun 2, 2026

run buildall

@yiguolei yiguolei closed this Jun 2, 2026
@yiguolei yiguolei reopened this Jun 2, 2026
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