Skip to content

branch-4.1: [fix](catalog) avoid external catalog refresh deadlock #61202#61721

Open
suxiaogang223 wants to merge 1 commit intoapache:branch-4.1from
suxiaogang223:codex/pick-61202-branch-4.1
Open

branch-4.1: [fix](catalog) avoid external catalog refresh deadlock #61202#61721
suxiaogang223 wants to merge 1 commit intoapache:branch-4.1from
suxiaogang223:codex/pick-61202-branch-4.1

Conversation

@suxiaogang223
Copy link
Contributor

@suxiaogang223 suxiaogang223 commented Mar 25, 2026

Cherry-pick #61202 to branch-4.1

What problem does this PR solve?

Avoid deadlock when external catalog refresh invalidates cache while another thread initializes the same catalog through a cache loader.

Cherry-pick commit

@suxiaogang223 suxiaogang223 requested a review from yiguolei as a code owner March 25, 2026 09:25
@Thearas
Copy link
Contributor

Thearas commented Mar 25, 2026

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?

### What problem does this PR solve?

Issue Number: apache#61099

Related PR: N/A

Problem Summary:
- Avoid deadlock when external catalog refresh invalidates cache while
another thread initializes the same catalog through a cache loader.
- Add a unit test to reproduce the lock inversion and verify both worker
threads also exit cleanly after the fix.

(cherry picked from commit 2205eff)
@suxiaogang223 suxiaogang223 force-pushed the codex/pick-61202-branch-4.1 branch from e42ccbd to f65304a Compare March 25, 2026 09:28
@suxiaogang223
Copy link
Contributor Author

run buildall

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