Fix bug that unitmanager hung when creating tenant.

This commit is contained in:
LeonChaoHi
2023-11-30 02:41:59 +00:00
committed by ob-robot
parent 228cfb5382
commit 2af75a5522
16 changed files with 501 additions and 245 deletions

View File

@ -771,6 +771,7 @@ int ObUnitTableOperator::get_units_by_tenant(const uint64_t tenant_id,
} else {
ObSqlString sql;
ObTimeoutCtx ctx;
units.reuse();
if (OB_FAIL(rootserver::ObRootUtils::get_rs_default_timeout_ctx(ctx))) {
LOG_WARN("fail to get timeout ctx", KR(ret), K(ctx));
} else if (OB_FAIL(sql.append_fmt("SELECT * from %s where resource_pool_id in "