-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[fix][catalog] Fix desc command null meta_cache issue when max_meta_object_cache_num=0 #55426
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Contributor
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
Contributor
Author
|
run buildall |
TPC-H: Total hot run time: 34137 ms |
TPC-DS: Total hot run time: 186876 ms |
ClickBench: Total hot run time: 32.74 s |
suxiaogang223
approved these changes
Aug 28, 2025
Contributor
suxiaogang223
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Contributor
|
PR approved by anyone and no changes requested. |
Contributor
Author
|
run cloud_p0 |
1 similar comment
Contributor
Author
|
run cloud_p0 |
16 tasks
morningman
added a commit
that referenced
this pull request
Nov 7, 2025
### What problem does this PR solve? 1. Issue Number: close #55426 When `max_meta_object_cache_num = 0`, the desc command fails because it tries to access disabled meta cache. ``` ERROR 1105 (HY000): errCode = 2, detailMessage = Unknown table '7311664922056505694' ``` So force set `max_meta_object_cache_num` > 0 2. Remove the removalListener of ExternalDatabase's meta cache, it may cause thread pool exausted: ``` "CommonRefreshExecutor-55" #19386 daemon prio=5 os_prio=0 tid=0x00007ef928005000 nid=0x61aa waiting on condition [0x00007ef8aaf5a000] java.lang.Thread.State: TIMED_WAITING (parking) at sun.misc.Unsafe.park(Native Method) - parking to wait for <0x00007f03c435af50> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject) at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215) at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2078) at java.util.concurrent.LinkedBlockingQueue.offer(LinkedBlockingQueue.java:385) at org.apache.doris.common.ThreadPoolManager$BlockedPolicy.rejectedExecution(ThreadPoolManager.java:347) at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:830) at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1379) at com.github.benmanes.caffeine.cache.BoundedLocalCache.notifyRemoval(BoundedLocalCache.java:333) at com.github.benmanes.caffeine.cache.BoundedLocalCache.removeNode(BoundedLocalCache.java:1882) at com.github.benmanes.caffeine.cache.BoundedLocalCache.clear(BoundedLocalCache.java:1819) at com.github.benmanes.caffeine.cache.LocalManualCache.invalidateAll(LocalManualCache.java:150) at org.apache.doris.datasource.metacache.MetaCache.invalidateAll(MetaCache.java:121) at org.apache.doris.datasource.ExternalDatabase.setUnInitialized(ExternalDatabase.java:123) at org.apache.doris.datasource.ExternalCatalog.lambda$null$2(ExternalCatalog.java:248) at org.apache.doris.datasource.ExternalCatalog$$Lambda$3280/1787323570.accept(Unknown Source) at java.util.Optional.ifPresent(Optional.java:159) at org.apache.doris.datasource.ExternalCatalog.lambda$makeSureInitialized$3(ExternalCatalog.java:248) at org.apache.doris.datasource.ExternalCatalog$$Lambda$2317/2029647164.onRemoval(Unknown Source) at com.github.benmanes.caffeine.cache.BoundedLocalCache.lambda$notifyRemoval$1(BoundedLocalCache.java:327) at com.github.benmanes.caffeine.cache.BoundedLocalCache$$Lambda$3279/2010922194.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:750) ```
github-actions bot
pushed a commit
that referenced
this pull request
Nov 7, 2025
### What problem does this PR solve? 1. Issue Number: close #55426 When `max_meta_object_cache_num = 0`, the desc command fails because it tries to access disabled meta cache. ``` ERROR 1105 (HY000): errCode = 2, detailMessage = Unknown table '7311664922056505694' ``` So force set `max_meta_object_cache_num` > 0 2. Remove the removalListener of ExternalDatabase's meta cache, it may cause thread pool exausted: ``` "CommonRefreshExecutor-55" #19386 daemon prio=5 os_prio=0 tid=0x00007ef928005000 nid=0x61aa waiting on condition [0x00007ef8aaf5a000] java.lang.Thread.State: TIMED_WAITING (parking) at sun.misc.Unsafe.park(Native Method) - parking to wait for <0x00007f03c435af50> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject) at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215) at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2078) at java.util.concurrent.LinkedBlockingQueue.offer(LinkedBlockingQueue.java:385) at org.apache.doris.common.ThreadPoolManager$BlockedPolicy.rejectedExecution(ThreadPoolManager.java:347) at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:830) at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1379) at com.github.benmanes.caffeine.cache.BoundedLocalCache.notifyRemoval(BoundedLocalCache.java:333) at com.github.benmanes.caffeine.cache.BoundedLocalCache.removeNode(BoundedLocalCache.java:1882) at com.github.benmanes.caffeine.cache.BoundedLocalCache.clear(BoundedLocalCache.java:1819) at com.github.benmanes.caffeine.cache.LocalManualCache.invalidateAll(LocalManualCache.java:150) at org.apache.doris.datasource.metacache.MetaCache.invalidateAll(MetaCache.java:121) at org.apache.doris.datasource.ExternalDatabase.setUnInitialized(ExternalDatabase.java:123) at org.apache.doris.datasource.ExternalCatalog.lambda$null$2(ExternalCatalog.java:248) at org.apache.doris.datasource.ExternalCatalog$$Lambda$3280/1787323570.accept(Unknown Source) at java.util.Optional.ifPresent(Optional.java:159) at org.apache.doris.datasource.ExternalCatalog.lambda$makeSureInitialized$3(ExternalCatalog.java:248) at org.apache.doris.datasource.ExternalCatalog$$Lambda$2317/2029647164.onRemoval(Unknown Source) at com.github.benmanes.caffeine.cache.BoundedLocalCache.lambda$notifyRemoval$1(BoundedLocalCache.java:327) at com.github.benmanes.caffeine.cache.BoundedLocalCache$$Lambda$3279/2010922194.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:750) ```
github-actions bot
pushed a commit
that referenced
this pull request
Nov 7, 2025
### What problem does this PR solve? 1. Issue Number: close #55426 When `max_meta_object_cache_num = 0`, the desc command fails because it tries to access disabled meta cache. ``` ERROR 1105 (HY000): errCode = 2, detailMessage = Unknown table '7311664922056505694' ``` So force set `max_meta_object_cache_num` > 0 2. Remove the removalListener of ExternalDatabase's meta cache, it may cause thread pool exausted: ``` "CommonRefreshExecutor-55" #19386 daemon prio=5 os_prio=0 tid=0x00007ef928005000 nid=0x61aa waiting on condition [0x00007ef8aaf5a000] java.lang.Thread.State: TIMED_WAITING (parking) at sun.misc.Unsafe.park(Native Method) - parking to wait for <0x00007f03c435af50> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject) at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215) at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2078) at java.util.concurrent.LinkedBlockingQueue.offer(LinkedBlockingQueue.java:385) at org.apache.doris.common.ThreadPoolManager$BlockedPolicy.rejectedExecution(ThreadPoolManager.java:347) at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:830) at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1379) at com.github.benmanes.caffeine.cache.BoundedLocalCache.notifyRemoval(BoundedLocalCache.java:333) at com.github.benmanes.caffeine.cache.BoundedLocalCache.removeNode(BoundedLocalCache.java:1882) at com.github.benmanes.caffeine.cache.BoundedLocalCache.clear(BoundedLocalCache.java:1819) at com.github.benmanes.caffeine.cache.LocalManualCache.invalidateAll(LocalManualCache.java:150) at org.apache.doris.datasource.metacache.MetaCache.invalidateAll(MetaCache.java:121) at org.apache.doris.datasource.ExternalDatabase.setUnInitialized(ExternalDatabase.java:123) at org.apache.doris.datasource.ExternalCatalog.lambda$null$2(ExternalCatalog.java:248) at org.apache.doris.datasource.ExternalCatalog$$Lambda$3280/1787323570.accept(Unknown Source) at java.util.Optional.ifPresent(Optional.java:159) at org.apache.doris.datasource.ExternalCatalog.lambda$makeSureInitialized$3(ExternalCatalog.java:248) at org.apache.doris.datasource.ExternalCatalog$$Lambda$2317/2029647164.onRemoval(Unknown Source) at com.github.benmanes.caffeine.cache.BoundedLocalCache.lambda$notifyRemoval$1(BoundedLocalCache.java:327) at com.github.benmanes.caffeine.cache.BoundedLocalCache$$Lambda$3279/2010922194.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:750) ```
CalvinKirs
pushed a commit
to CalvinKirs/incubator-doris
that referenced
this pull request
Nov 7, 2025
### What problem does this PR solve? 1. Issue Number: close apache#55426 When `max_meta_object_cache_num = 0`, the desc command fails because it tries to access disabled meta cache. ``` ERROR 1105 (HY000): errCode = 2, detailMessage = Unknown table '7311664922056505694' ``` So force set `max_meta_object_cache_num` > 0 2. Remove the removalListener of ExternalDatabase's meta cache, it may cause thread pool exausted: ``` "CommonRefreshExecutor-55" apache#19386 daemon prio=5 os_prio=0 tid=0x00007ef928005000 nid=0x61aa waiting on condition [0x00007ef8aaf5a000] java.lang.Thread.State: TIMED_WAITING (parking) at sun.misc.Unsafe.park(Native Method) - parking to wait for <0x00007f03c435af50> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject) at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215) at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2078) at java.util.concurrent.LinkedBlockingQueue.offer(LinkedBlockingQueue.java:385) at org.apache.doris.common.ThreadPoolManager$BlockedPolicy.rejectedExecution(ThreadPoolManager.java:347) at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:830) at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1379) at com.github.benmanes.caffeine.cache.BoundedLocalCache.notifyRemoval(BoundedLocalCache.java:333) at com.github.benmanes.caffeine.cache.BoundedLocalCache.removeNode(BoundedLocalCache.java:1882) at com.github.benmanes.caffeine.cache.BoundedLocalCache.clear(BoundedLocalCache.java:1819) at com.github.benmanes.caffeine.cache.LocalManualCache.invalidateAll(LocalManualCache.java:150) at org.apache.doris.datasource.metacache.MetaCache.invalidateAll(MetaCache.java:121) at org.apache.doris.datasource.ExternalDatabase.setUnInitialized(ExternalDatabase.java:123) at org.apache.doris.datasource.ExternalCatalog.lambda$null$2(ExternalCatalog.java:248) at org.apache.doris.datasource.ExternalCatalog$$Lambda$3280/1787323570.accept(Unknown Source) at java.util.Optional.ifPresent(Optional.java:159) at org.apache.doris.datasource.ExternalCatalog.lambda$makeSureInitialized$3(ExternalCatalog.java:248) at org.apache.doris.datasource.ExternalCatalog$$Lambda$2317/2029647164.onRemoval(Unknown Source) at com.github.benmanes.caffeine.cache.BoundedLocalCache.lambda$notifyRemoval$1(BoundedLocalCache.java:327) at com.github.benmanes.caffeine.cache.BoundedLocalCache$$Lambda$3279/2010922194.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:750) ```
wyxxxcat
pushed a commit
to wyxxxcat/doris
that referenced
this pull request
Nov 18, 2025
### What problem does this PR solve? 1. Issue Number: close apache#55426 When `max_meta_object_cache_num = 0`, the desc command fails because it tries to access disabled meta cache. ``` ERROR 1105 (HY000): errCode = 2, detailMessage = Unknown table '7311664922056505694' ``` So force set `max_meta_object_cache_num` > 0 2. Remove the removalListener of ExternalDatabase's meta cache, it may cause thread pool exausted: ``` "CommonRefreshExecutor-55" apache#19386 daemon prio=5 os_prio=0 tid=0x00007ef928005000 nid=0x61aa waiting on condition [0x00007ef8aaf5a000] java.lang.Thread.State: TIMED_WAITING (parking) at sun.misc.Unsafe.park(Native Method) - parking to wait for <0x00007f03c435af50> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject) at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215) at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2078) at java.util.concurrent.LinkedBlockingQueue.offer(LinkedBlockingQueue.java:385) at org.apache.doris.common.ThreadPoolManager$BlockedPolicy.rejectedExecution(ThreadPoolManager.java:347) at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:830) at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1379) at com.github.benmanes.caffeine.cache.BoundedLocalCache.notifyRemoval(BoundedLocalCache.java:333) at com.github.benmanes.caffeine.cache.BoundedLocalCache.removeNode(BoundedLocalCache.java:1882) at com.github.benmanes.caffeine.cache.BoundedLocalCache.clear(BoundedLocalCache.java:1819) at com.github.benmanes.caffeine.cache.LocalManualCache.invalidateAll(LocalManualCache.java:150) at org.apache.doris.datasource.metacache.MetaCache.invalidateAll(MetaCache.java:121) at org.apache.doris.datasource.ExternalDatabase.setUnInitialized(ExternalDatabase.java:123) at org.apache.doris.datasource.ExternalCatalog.lambda$null$2(ExternalCatalog.java:248) at org.apache.doris.datasource.ExternalCatalog$$Lambda$3280/1787323570.accept(Unknown Source) at java.util.Optional.ifPresent(Optional.java:159) at org.apache.doris.datasource.ExternalCatalog.lambda$makeSureInitialized$3(ExternalCatalog.java:248) at org.apache.doris.datasource.ExternalCatalog$$Lambda$2317/2029647164.onRemoval(Unknown Source) at com.github.benmanes.caffeine.cache.BoundedLocalCache.lambda$notifyRemoval$1(BoundedLocalCache.java:327) at com.github.benmanes.caffeine.cache.BoundedLocalCache$$Lambda$3279/2010922194.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:750) ```
liaoxin01
pushed a commit
to liaoxin01/doris
that referenced
this pull request
Feb 9, 2026
1. Issue Number: close apache#55426 When `max_meta_object_cache_num = 0`, the desc command fails because it tries to access disabled meta cache. ``` ERROR 1105 (HY000): errCode = 2, detailMessage = Unknown table '7311664922056505694' ``` So force set `max_meta_object_cache_num` > 0 2. Remove the removalListener of ExternalDatabase's meta cache, it may cause thread pool exausted: ``` "CommonRefreshExecutor-55" apache#19386 daemon prio=5 os_prio=0 tid=0x00007ef928005000 nid=0x61aa waiting on condition [0x00007ef8aaf5a000] java.lang.Thread.State: TIMED_WAITING (parking) at sun.misc.Unsafe.park(Native Method) - parking to wait for <0x00007f03c435af50> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject) at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215) at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2078) at java.util.concurrent.LinkedBlockingQueue.offer(LinkedBlockingQueue.java:385) at org.apache.doris.common.ThreadPoolManager$BlockedPolicy.rejectedExecution(ThreadPoolManager.java:347) at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:830) at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1379) at com.github.benmanes.caffeine.cache.BoundedLocalCache.notifyRemoval(BoundedLocalCache.java:333) at com.github.benmanes.caffeine.cache.BoundedLocalCache.removeNode(BoundedLocalCache.java:1882) at com.github.benmanes.caffeine.cache.BoundedLocalCache.clear(BoundedLocalCache.java:1819) at com.github.benmanes.caffeine.cache.LocalManualCache.invalidateAll(LocalManualCache.java:150) at org.apache.doris.datasource.metacache.MetaCache.invalidateAll(MetaCache.java:121) at org.apache.doris.datasource.ExternalDatabase.setUnInitialized(ExternalDatabase.java:123) at org.apache.doris.datasource.ExternalCatalog.lambda$null$2(ExternalCatalog.java:248) at org.apache.doris.datasource.ExternalCatalog$$Lambda$3280/1787323570.accept(Unknown Source) at java.util.Optional.ifPresent(Optional.java:159) at org.apache.doris.datasource.ExternalCatalog.lambda$makeSureInitialized$3(ExternalCatalog.java:248) at org.apache.doris.datasource.ExternalCatalog$$Lambda$2317/2029647164.onRemoval(Unknown Source) at com.github.benmanes.caffeine.cache.BoundedLocalCache.lambda$notifyRemoval$1(BoundedLocalCache.java:327) at com.github.benmanes.caffeine.cache.BoundedLocalCache$$Lambda$3279/2010922194.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:750) ```
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What problem does this PR solve?
When max_meta_object_cache_num = 0, the desc command fails because it tries to access disabled meta cache.
Error reproduction:
When use_meta_cache = true (shown in catalog properties), executing desc t_ts_ntz; fails with:
When use_meta_cache = false is explicitly set, the same desc t_ts_ntz; command works correctly
Solution
Issue Number: close #xxx
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)