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

LrcXAResource autocommit can't be restore #13

Open
vivikcat opened this issue Mar 18, 2014 · 1 comment
Open

LrcXAResource autocommit can't be restore #13

vivikcat opened this issue Mar 18, 2014 · 1 comment

Comments

@vivikcat
Copy link

It happend to two transcations T1 & T2. T2's Propagation.REQUIRES_NEW, T1 is suspended. T2 submit and resume T1. T1 enlist to XAResourceManager, then xaResourceHolderState.start > LrcXAResource.start
LrcXAResource code line 152:
autocommitActiveBeforeStart = connection.getAutoCommit();
if (autocommitActiveBeforeStart) {
connection.setAutoCommit(false);
}

for now. autocommit have been set false before T1 been suspended, variable autocommitActiveBeforeStart is changed, it is not right flag. because when T1 submit , connection autocommit can't be restore before

I used btm2.1.4

@lorban
Copy link
Contributor

lorban commented Mar 23, 2014

Github is the host of BTM 3.0.x, the old 2.1.x will stay at codehaus.
Could you please check that the same problem applies to 3.0.0, and in good open-source tradition, eventually provide a patch?

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

No branches or pull requests

2 participants