HappenLee commented on code in PR #50803: URL: https://github.com/apache/doris/pull/50803#discussion_r2085837191
########## be/src/cloud/cloud_tablet_mgr.cpp: ########## @@ -170,6 +171,12 @@ Result<std::shared_ptr<CloudTablet>> CloudTabletMgr::get_tablet(int64_t tablet_i auto tablet_id_str = std::to_string(tablet_id); CacheKey key(tablet_id_str); auto* handle = _cache->lookup(key); + + if (handle == nullptr && force_use_cache) { + return ResultError( Review Comment: 不会,scan的时候肯定扫描了一下。这个只有二阶段读的时候会用cache -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org