Retry when drop column failed due to rpc error
This commit is contained in:
@ -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 {
|
||||
|
@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user