eldenmoon commented on code in PR #50803:
URL: https://github.com/apache/doris/pull/50803#discussion_r2085820757
##########
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:
如果是第一次get_tablet不在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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]