Skip to content

LrcXAResource autocommit can't be restore #13

@vivikcat

Description

@vivikcat

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions