fix drop tenant maybe hung

This commit is contained in:
maosy
2023-07-25 08:12:39 +00:00
committed by ob-robot
parent 5c2fc55d63
commit 0870baa73f
5 changed files with 3 additions and 52 deletions

View File

@ -209,7 +209,7 @@ int ObTenantThreadHelper::wait_tenant_schema_and_version_ready_(
ret = OB_SUCCESS;
if (OB_FAIL(get_tenant_schema(tenant_id, tenant_schema))) {
LOG_WARN("failed to get tenant schema", KR(ret), K(tenant_id));
} else if (!tenant_schema.is_normal()) {
} else if (tenant_schema.is_creating()) {
ret = OB_NEED_WAIT;
LOG_WARN("tenant schema not ready, no need tenant balance", KR(ret), K(tenant_schema));
} else {