This is an automated email from the ASF dual-hosted git repository.
gavinchou pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 93e8b0d1cf0 [fix](file-cache) Clear file cache when tablet meta not
found in ms (#48318)
93e8b0d1cf0 is described below
commit 93e8b0d1cf03470e23ed241d4be27d6853c87937
Author: Siyang Tang <[email protected]>
AuthorDate: Thu Feb 27 20:19:41 2025 +0800
[fix](file-cache) Clear file cache when tablet meta not found in ms (#48318)
File cache will only be clear when clear_cache is called if tablet meta
no longer exists in ms.
---
be/src/cloud/cloud_tablet.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/be/src/cloud/cloud_tablet.cpp b/be/src/cloud/cloud_tablet.cpp
index 7abd8568bcb..61c91288a55 100644
--- a/be/src/cloud/cloud_tablet.cpp
+++ b/be/src/cloud/cloud_tablet.cpp
@@ -904,7 +904,7 @@ Status CloudTablet::sync_meta() {
auto st = _engine.meta_mgr().get_tablet_meta(tablet_id(), &tablet_meta);
if (!st.ok()) {
if (st.is<ErrorCode::NOT_FOUND>()) {
- // TODO(Lchangliang): recycle_resources_by_self();
+ clear_cache();
}
return st;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]