Skip to content

Incorrectly set actualTransaction in AbstractPlatformTransactionManager.resume? [SPR-1469] #6168

Closed
@spring-projects-issues

Description

@spring-projects-issues

Steven Bazyl opened SPR-1469 and commented

It looks like there is a bug in how the actualTransaction flag is set when resuming. If a transaction with PROPAGATION_SUPPORTS, the flag is correctly set to false. But if the tx is suspended by calling code with REQUIRES_NEW, the reume method will always restore the flag with the value 'true' rather than check to see whether or not the resumed transaction was real or not. Subsequent checks to see if the TX is an actual transaction or not will fail.

I'll attach test code shortly...


Affects: 1.2.5

Metadata

Metadata

Assignees

Labels

in: dataIssues in data modules (jdbc, orm, oxm, tx)type: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions