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

Improve error message to identify exact problem on enlist failure. #229

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

leolegenie
Copy link

The proposed change improves the error message received for cases where the enlist fails in the AtomikosJdbcConnectionProxy.

Currently this class says for all transaction states that are not ACTIVE or MARKED_ABORT that a timeout happened. This is misleading, we particularly had a case where the enlist failed not due to a timeout but because JPA called a setRollbackOnly because a flush failed on the EntityManager because of an SQL Error (value was too large for a specific column, JPA implementation was Eclipselink).

So here we propose to add the actual transaction state to the error message to get a better hint on what might be the problem.

@CLAassistant
Copy link

CLAassistant commented Aug 19, 2024

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants