fix ddl retry error code

This commit is contained in:
obdev
2022-10-26 10:18:39 +08:00
committed by wangzelin.wzl
parent b73efa85ae
commit b5be94cf15
11 changed files with 31 additions and 12 deletions

View File

@ -1293,7 +1293,7 @@ int ObDDLRedefinitionTask::check_health()
ret = OB_TABLE_NOT_EXIST;
LOG_WARN("data table or dest table not exist", K(ret), K(is_source_table_exist), K(is_dest_table_exist));
}
if (OB_FAIL(ret) && !ObIDDLTask::error_need_retry(ret)) {
if (OB_FAIL(ret) && !ObIDDLTask::in_ddl_retry_white_list(ret)) {
const ObDDLTaskStatus old_status = static_cast<ObDDLTaskStatus>(task_status_);
const ObDDLTaskStatus new_status = ObDDLTaskStatus::FAIL;
switch_status(new_status, ret);