das task should fast fail when tenant not exist.

This commit is contained in:
rolandqi
2023-01-28 17:27:10 +08:00
committed by ob-robot
parent 35013451f0
commit bce1a409e4

View File

@ -285,6 +285,8 @@ bool ObDataAccessService::can_fast_fail(const ObIDASTaskOp &task_op) const
if (OB_ISNULL(GCTX.schema_service_)) {
LOG_ERROR("invalid schema service", KR(ret));
} else if (OB_FAIL(GCTX.schema_service_->get_tenant_schema_guard(MTL_ID(), schema_guard))) {
// tenant could be deleted
bret = true;
LOG_WARN("get tenant schema guard fail", KR(ret), K(MTL_ID()));
} else if (OB_FAIL(schema_guard.get_table_schema(MTL_ID(), table_id, table_schema))) {
LOG_WARN("failed to get table schema", KR(ret));