Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bugfix: hikari datasource auto proxy fail #5134

Merged
merged 12 commits into from
Dec 12, 2022
Prev Previous commit
Next Next commit
update
  • Loading branch information
funky-eyes committed Dec 6, 2022
commit 386eb012f1c1d6689c72a034da9d38ca259b23fa
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public synchronized void xaRollback(String xid, long branchId, String applicatio
xaRollback(xaXid);
} catch (XAException e) {
if (e.errorCode == XAException.XAER_RMFAIL && e.getMessage().trim().endsWith("ACTIVE state")) {
xaResource.end(xaBranchXid, XAResource.TMFAIL);
xaResource.end(this.xaBranchXid, XAResource.TMFAIL);
xaRollback(xaBranchXid);
} else {
throw e;
Expand Down Expand Up @@ -252,7 +252,7 @@ public void rollback() throws SQLException {
try {
if (!rollBacked) {
// XA End: Fail
end(XAResource.TMFAIL);
xaResource.end(this.xaBranchXid, XAResource.TMFAIL);
xaRollback(xaBranchXid);
}
// Branch Report to TC
Expand Down