[ExternalCatalog](fix) external catalog meta data inconsistent when frequent refreshing#63033
[ExternalCatalog](fix) external catalog meta data inconsistent when frequent refreshing#63033qzsee wants to merge 2 commits intoapache:masterfrom
Conversation
…requent refreshing
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
|
run buildall |
Improvement Suggestions for PR #63033PR: [ExternalCatalog external catalog meta data inconsistent when frequent refreshing](#63033) The suggestions below are ordered by priority — most impactful first. 1. [P1] Bring
|
|
run buildall |
|
PR approved by at least one committer and no changes requested. |
|
PR approved by anyone and no changes requested. |
What problem does this PR solve?
Issue Number: close #xxx
Race condition in lowerCaseToTableName cache:
lowerCaseToTableName.getLocalTableName; on a cache miss forfinalName, they fall back tolistTableNamesto rebuild the cache.listTableNamesitself clearslowerCaseToTableNamebefore repopulating it.listTableNames, and thread B subsequently enterslistTableNames, B will clear the cache again.Related PR: #xxx
Problem Summary:
Release note
None
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)