fix ddl rpc timeout out
This commit is contained in:
@ -250,7 +250,7 @@ int ObColumnRedefinitionTask::copy_table_indexes()
|
||||
LOG_INFO("indexes schema are already built", K(index_ids));
|
||||
} else {
|
||||
// if there is no indexes in new tables, we need to rebuild indexes in new table
|
||||
if (OB_FAIL(root_service->get_ddl_service().get_common_rpc()->to(obrpc::ObRpcProxy::myaddr_).
|
||||
if (OB_FAIL(root_service->get_ddl_service().get_common_rpc()->to(obrpc::ObRpcProxy::myaddr_).timeout(ObDDLUtil::get_ddl_rpc_timeout()).
|
||||
execute_ddl_task(alter_table_arg_, index_ids))) {
|
||||
LOG_WARN("rebuild hidden table index failed", K(ret));
|
||||
}
|
||||
@ -358,7 +358,7 @@ int ObColumnRedefinitionTask::copy_table_constraints()
|
||||
alter_table_arg_.ddl_task_type_ = share::REBUILD_CONSTRAINT_TASK;
|
||||
alter_table_arg_.table_id_ = object_id_;
|
||||
alter_table_arg_.hidden_table_id_ = target_object_id_;
|
||||
if (OB_FAIL(root_service->get_ddl_service().get_common_rpc()->to(obrpc::ObRpcProxy::myaddr_).
|
||||
if (OB_FAIL(root_service->get_ddl_service().get_common_rpc()->to(obrpc::ObRpcProxy::myaddr_).timeout(ObDDLUtil::get_ddl_rpc_timeout()).
|
||||
execute_ddl_task(alter_table_arg_, constraint_ids))) {
|
||||
LOG_WARN("rebuild hidden table constraint failed", K(ret));
|
||||
}
|
||||
@ -402,7 +402,7 @@ int ObColumnRedefinitionTask::copy_table_foreign_keys()
|
||||
alter_table_arg_.ddl_task_type_ = share::REBUILD_FOREIGN_KEY_TASK;
|
||||
alter_table_arg_.table_id_ = object_id_;
|
||||
alter_table_arg_.hidden_table_id_ = target_object_id_;
|
||||
if (OB_FAIL(root_service->get_ddl_service().get_common_rpc()->to(obrpc::ObRpcProxy::myaddr_).
|
||||
if (OB_FAIL(root_service->get_ddl_service().get_common_rpc()->to(obrpc::ObRpcProxy::myaddr_).timeout(ObDDLUtil::get_ddl_rpc_timeout()).
|
||||
execute_ddl_task(alter_table_arg_, fk_ids))) {
|
||||
LOG_WARN("rebuild hidden table constraint failed", K(ret));
|
||||
}
|
||||
@ -536,7 +536,7 @@ int ObColumnRedefinitionTask::take_effect(const ObDDLTaskStatus next_task_status
|
||||
}
|
||||
} else if (OB_FAIL(sync_stats_info())) {
|
||||
LOG_WARN("fail to sync stats info", K(ret), K(object_id_), K(target_object_id_));
|
||||
} else if (OB_FAIL(root_service->get_ddl_service().get_common_rpc()->to(obrpc::ObRpcProxy::myaddr_).
|
||||
} else if (OB_FAIL(root_service->get_ddl_service().get_common_rpc()->to(obrpc::ObRpcProxy::myaddr_).timeout(ObDDLUtil::get_ddl_rpc_timeout()).
|
||||
execute_ddl_task(alter_table_arg_, objs))) {
|
||||
LOG_WARN("fail to swap original and hidden table state", K(ret));
|
||||
if (OB_TIMEOUT == ret) {
|
||||
|
||||
Reference in New Issue
Block a user