[FEAT MERGE]
Co-authored-by: leftgeek <1094669802@qq.com> Co-authored-by: coolfishchen <coolfishchen@gmail.com> Co-authored-by: hy-guo <fqboyg@gmail.com>
This commit is contained in:
@ -625,7 +625,7 @@ int ObCreateTableExecutor::execute(ObExecContext &ctx, ObCreateTableStmt &stmt)
|
||||
ret = OB_ERR_UNEXPECTED;
|
||||
LOG_WARN("session_info should not be nullptr", KR(ret));
|
||||
} else if (OB_FAIL(ObDDLExecutorUtil::wait_ddl_finish(
|
||||
tenant_id, res.task_id_, session_info, common_rpc_proxy, true))) {
|
||||
tenant_id, res.task_id_, false/*do not retry at executor*/, session_info, common_rpc_proxy, true))) {
|
||||
if (storage::ObMViewExecutorUtil::is_mview_refresh_retry_ret_code(ret)) {
|
||||
LOG_WARN("retry create mview", KR(ret), K(tenant_id), "task_id", res.task_id_);
|
||||
ret = OB_EAGAIN;
|
||||
@ -813,7 +813,7 @@ int ObAlterTableExecutor::alter_table_rpc_v2(
|
||||
ObIArray<obrpc::ObDDLRes> &ddl_ress = res.ddl_res_array_;
|
||||
for (int64_t i = 0; OB_SUCC(ret) && i < ddl_ress.count(); ++i) {
|
||||
ObDDLRes &ddl_res = ddl_ress.at(i);
|
||||
if (OB_FAIL(ObDDLExecutorUtil::wait_ddl_finish(ddl_res.tenant_id_, ddl_res.task_id_, my_session, common_rpc_proxy, is_support_cancel))) {
|
||||
if (OB_FAIL(ObDDLExecutorUtil::wait_ddl_finish(ddl_res.tenant_id_, ddl_res.task_id_, false/*do not retry at executor*/, my_session, common_rpc_proxy, is_support_cancel))) {
|
||||
LOG_WARN("wait drop index finish", K(ret));
|
||||
}
|
||||
}
|
||||
@ -1142,7 +1142,7 @@ int ObAlterTableExecutor::execute(ObExecContext &ctx, ObAlterTableStmt &stmt)
|
||||
// do nothing, don't check if data is valid
|
||||
} else if (OB_FAIL(refresh_schema_for_table(tenant_id))) {
|
||||
LOG_WARN("refresh_schema_for_table failed", K(ret));
|
||||
} else if (OB_FAIL(ObDDLExecutorUtil::wait_ddl_finish(tenant_id, res.task_id_, my_session, common_rpc_proxy))) {
|
||||
} else if (OB_FAIL(ObDDLExecutorUtil::wait_ddl_finish(tenant_id, res.task_id_, res.ddl_need_retry_at_executor_, my_session, common_rpc_proxy))) {
|
||||
LOG_WARN("wait check constraint finish", K(ret));
|
||||
}
|
||||
}
|
||||
@ -1153,7 +1153,7 @@ int ObAlterTableExecutor::execute(ObExecContext &ctx, ObAlterTableStmt &stmt)
|
||||
} else {
|
||||
if (OB_FAIL(refresh_schema_for_table(tenant_id))) {
|
||||
LOG_WARN("refresh_schema_for_table failed", K(ret));
|
||||
} else if (OB_FAIL(ObDDLExecutorUtil::wait_ddl_finish(tenant_id, res.task_id_, my_session, common_rpc_proxy))) {
|
||||
} else if (OB_FAIL(ObDDLExecutorUtil::wait_ddl_finish(tenant_id, res.task_id_, res.ddl_need_retry_at_executor_, my_session, common_rpc_proxy))) {
|
||||
LOG_WARN("wait fk constraint finish", K(ret));
|
||||
}
|
||||
}
|
||||
@ -1166,7 +1166,7 @@ int ObAlterTableExecutor::execute(ObExecContext &ctx, ObAlterTableStmt &stmt)
|
||||
int64_t affected_rows = 0;
|
||||
if (OB_FAIL(refresh_schema_for_table(alter_table_arg.exec_tenant_id_))) {
|
||||
LOG_WARN("refresh_schema_for_table failed", K(ret));
|
||||
} else if (OB_FAIL(ObDDLExecutorUtil::wait_ddl_finish(tenant_id, res.task_id_, my_session, common_rpc_proxy))) {
|
||||
} else if (OB_FAIL(ObDDLExecutorUtil::wait_ddl_finish(tenant_id, res.task_id_, res.ddl_need_retry_at_executor_, my_session, common_rpc_proxy))) {
|
||||
LOG_WARN("fail to wait ddl finish", K(ret), K(tenant_id), K(res));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user