From 9f436710cbc73c898155862415673d40297b44e5 Mon Sep 17 00:00:00 2001 From: YoungYang0820 Date: Fri, 8 Jul 2022 11:48:20 +0800 Subject: [PATCH] [CP] fix try_update_tenant_info fail when tenant not exist --- src/storage/ob_tenant_meta_memory_mgr.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/storage/ob_tenant_meta_memory_mgr.cpp b/src/storage/ob_tenant_meta_memory_mgr.cpp index 515c6e59c3..7b86dea6b7 100644 --- a/src/storage/ob_tenant_meta_memory_mgr.cpp +++ b/src/storage/ob_tenant_meta_memory_mgr.cpp @@ -63,7 +63,12 @@ int ObTenantMetaMemoryMgr::try_update_tenant_info(const uint64_t tenant_id, cons int64_t memory_percentage = 0; // tenant_schema does not need to check full schema if (OB_FAIL(ObMultiVersionSchemaService::get_instance().get_tenant_full_schema_guard(tenant_id, schema_guard))) { - LOG_WARN("fail to get schema guard", K(ret), K(tenant_id)); + if (OB_TENANT_NOT_EXIST == ret) { + ret = OB_SUCCESS; + LOG_INFO("tenant is not exist, skip this task", K(tenant_id), K(schema_version)); + } else { + LOG_WARN("fail to get schema guard", K(ret), K(tenant_id)); + } } else if (OB_FAIL( schema_guard.get_tenant_meta_reserved_memory_percentage(tenant_id, allocator, memory_percentage))) { if (OB_ENTRY_NOT_EXIST == ret) { -- GitLab