pick https://github.com/apache/doris/pull/52144
This commit is contained in:
@ -384,7 +384,9 @@ public abstract class ConnectProcessor {
|
||||
auditAfterExec(auditStmt, executor.getParsedStmt(), executor.getQueryStatisticsForAuditLog(),
|
||||
true);
|
||||
// execute failed, skip remaining stmts
|
||||
if (ctx.getState().getStateType() == MysqlStateType.ERR) {
|
||||
if (ctx.getState().getStateType() == MysqlStateType.ERR || (!Env.getCurrentEnv().isMaster()
|
||||
&& ctx.executor != null && ctx.executor.isForwardToMaster()
|
||||
&& ctx.executor.getProxyStatusCode() != 0)) {
|
||||
break;
|
||||
}
|
||||
} catch (Throwable throwable) {
|
||||
|
||||
Reference in New Issue
Block a user