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

Connection leak when XAResource.recover fails #11556

Closed
djmatthews opened this issue Mar 31, 2020 · 0 comments · Fixed by #13213
Closed

Connection leak when XAResource.recover fails #11556

djmatthews opened this issue Mar 31, 2020 · 0 comments · Fixed by #13213
Labels
release bug This bug is present in a released version of Open Liberty release:20009

Comments

@djmatthews
Copy link

An Oracle XAResource failed with XAException XAER_RMERR on transaction recovery at server restart. This was due to lack of permissions, however it was observed that in this scenario a connection leak occurred.

The issue is caused by the early return in XARecoveryData.recover when handling the exception from xarm.recover. This should still call xarm.closeConnection() in order to tidy up the existing connection (it will request a new XAResource on retry). NOTE the code performed the xarm.closeConnection() on failure in earlier, pre-open source versions.

@djmatthews djmatthews added bug This bug is not present in a released version of Open Liberty release bug This bug is present in a released version of Open Liberty and removed bug This bug is not present in a released version of Open Liberty labels Mar 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release bug This bug is present in a released version of Open Liberty release:20009
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants