xiaoxiangyeyu0 commented on code in PR #7997:
URL: https://github.com/apache/incubator-seata/pull/7997#discussion_r2844997125
##########
rm-datasource/src/main/java/org/apache/seata/rm/datasource/xa/ConnectionProxyXA.java:
##########
@@ -348,9 +348,13 @@ public void close() throws SQLException {
reportStatusToTC(BranchStatus.PhaseOne_RDONLY);
}
}
+ } catch (SQLException xe) {
+ // Branch Report to TC: Exception
+ reportStatusToTC(BranchStatus.PhaseOne_PrepareFailed);
+ throw xe;
} catch (XAException xe) {
- // Branch Report to TC: Failed
- reportStatusToTC(BranchStatus.PhaseOne_Failed);
+ // Branch Report to TC: Exception
+ reportStatusToTC(BranchStatus.PhaseOne_PrepareFailed);
Review Comment:
After the modification of the pre submission fails, call the rollback method
and close the original connection
修改预提交失败后,调用回滚方法并关闭原始连接
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]