Skip to content
New issue

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

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

Already on GitHub? # to your account

[WFTC-24] When an IOException occurs mid transaction, throw XaExcepti… #21

Merged
merged 1 commit into from
Jun 2, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ ConnectionPeerIdentity getPeerIdentityXA() throws XAException {
try {
return getPeerIdentity();
} catch (IOException e) {
throw Log.log.failedToAcquireConnectionXA(e, XAException.XAER_RMERR);
throw Log.log.failedToAcquireConnectionXA(e, XAException.XAER_RMFAIL);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ public void commit(final Xid xid, final boolean onePhase, final ConnectionPeerId
throw Log.log.unrecognizedParameter(XAException.XAER_RMFAIL, id);
}
} catch (IOException e) {
throw Log.log.responseFailedXa(e, XAException.XAER_RMERR);
throw Log.log.responseFailedXa(e, XAException.XAER_RMFAIL);
}
} catch (InterruptedException e) {
Thread.currentThread().interrupt();
Expand Down