fix to retry build replice when observer has not refreshed the latest schema.

This commit is contained in:
obdev
2022-11-22 13:35:37 +00:00
committed by wangzelin.wzl
parent faab617097
commit de322a3319
6 changed files with 66 additions and 17 deletions

View File

@ -671,7 +671,7 @@ int ObIndexBuildTask::check_build_single_replica(bool &is_end)
} else if (OB_SUCCESS != complete_sstable_job_ret_code_) {
ret = complete_sstable_job_ret_code_;
LOG_WARN("sstable complete job has failed", K(ret), K(object_id_), K(index_table_id_));
if (ObIDDLTask::in_ddl_retry_white_list(ret) || OB_REPLICA_NOT_READABLE == ret || OB_ERR_INSUFFICIENT_PX_WORKER == ret) {
if (is_replica_build_need_retry(ret)) {
// retry sql job by re-submit
is_sstable_complete_task_submitted_ = false;
complete_sstable_job_ret_code_ = INT64_MAX;