Skip to content

Commit 6cd2b50

Browse files
committed
[fix](cloud) Cloud tablet cache should not be pruned
Otherwise there may be severe performance issue for query associated to many tablets
1 parent 33e0ec7 commit 6cd2b50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

be/src/cloud/cloud_tablet_mgr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ CloudTabletMgr::CloudTabletMgr(CloudStorageEngine& engine)
141141
_tablet_map(std::make_unique<TabletMap>()),
142142
_cache(std::make_unique<LRUCachePolicy>(
143143
CachePolicy::CacheType::CLOUD_TABLET_CACHE, config::tablet_cache_capacity,
144-
LRUCacheType::NUMBER, 0, config::tablet_cache_shards)) {}
144+
LRUCacheType::NUMBER, 0, config::tablet_cache_shards, false /*enable_prune*/)) {}
145145

146146
CloudTabletMgr::~CloudTabletMgr() = default;
147147

0 commit comments

Comments
 (0)