Retry when drop column failed due to rpc error

This commit is contained in:
obdev
2022-10-27 02:37:36 +00:00
committed by wangzelin.wzl
parent 8bdd19355c
commit 0b6c973363
2 changed files with 2 additions and 2 deletions

View File

@ -148,7 +148,7 @@ int ObDDLSingleReplicaExecutor::schedule_task()
} else if (OB_SUCCESS == ret_array.at(i)) {
build_infos.at(idx).stat_ = ObPartitionBuildStat::BUILD_REQUESTED;
LOG_INFO("rpc send successfully", K(source_tablet_ids_.at(idx)), K(dest_tablet_ids_.at(idx)));
} else if (OB_HASH_EXIST == ret_array.at(i) || OB_TIMEOUT == ret_array.at(i) || OB_EAGAIN == ret_array.at(i)) {
} else if (ObIDDLTask::in_ddl_retry_white_list(ret_array.at(i))) {
build_infos.at(idx).stat_ = ObPartitionBuildStat::BUILD_RETRY;
LOG_INFO("task need retry", K(ret_array.at(i)), K(source_tablet_ids_.at(idx)), K(dest_tablet_ids_.at(idx)));
} else {

View File

@ -57,7 +57,7 @@ public:
|| common::OB_TRANS_STMT_TIMEOUT == ret_code || common::OB_RS_NOT_MASTER == ret_code || OB_TRANS_NEED_ROLLBACK == ret_code
|| common::OB_SCHEMA_EAGAIN == ret_code || common::OB_GTS_NOT_READY == ret_code || common::OB_ERR_SHARED_LOCK_CONFLICT == ret_code
|| common::OB_PARTITION_NOT_EXIST == ret_code || common::OB_PG_IS_REMOVED == ret_code || common::OB_TENANT_NOT_EXIST == ret_code
|| common::OB_RPC_SEND_ERROR == ret_code || common::OB_DDL_SCHEMA_VERSION_NOT_MATCH == ret_code;
|| common::OB_RPC_SEND_ERROR == ret_code || common::OB_RPC_CONNECT_ERROR == ret_code || common::OB_DDL_SCHEMA_VERSION_NOT_MATCH == ret_code;
}
static bool in_ddl_retry_black_list(const int ret_code)
{