提交 84689879 编写于 作者: O obdev 提交者: wangzelin.wzl

[Bugfix] SQL doesn't retry while schema is not refreshed

上级 d28594a8
......@@ -3514,12 +3514,18 @@ bool ObMultiVersionSchemaService::is_schema_error_need_retry(
const uint64_t tenant_id)
{
bool bret = false;
if (!is_sys_full_schema()) {
int ret = OB_SUCCESS;
bool schema_not_full = false;
int64_t schema_version = OB_INVALID_VERSION;
if (OB_FAIL(refresh_full_schema_map_.get_refactored(OB_SYS_TENANT_ID, schema_not_full))) {
// skip
} else if (schema_not_full) {
// observer may be not start service, do not retry
} else if (is_tenant_full_schema(tenant_id)) {
// refresh schema success once, do not retry
} else if (OB_FAIL(refresh_full_schema_map_.get_refactored(tenant_id, schema_not_full))) {
// skip
} else if (!schema_not_full) {
// tenant's schema is full, do not retry
} else {
int ret = OB_SUCCESS;
ObSchemaGetterGuard tmp_guard;
const ObSimpleTenantSchema *tenant_schema = NULL;
if (OB_ISNULL(guard)) {
......@@ -3540,7 +3546,7 @@ bool ObMultiVersionSchemaService::is_schema_error_need_retry(
// 2. restoring
// 3. dropping
} else {
// normal
// observer restarts
bret = true;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册