We're updating the issue view to help you get more done. 

Use the isActive() method to check if a transaction is still active

Description

In many test we use the clause:

1 2 3 if (transaction.getStatus() == TransactionStatus.ACTIVE) { transaction.rollback(); }

to check and rollback an active transaction.
But this clause does not rollback the transaction if the status was *MARKED_ROLLBACK*.

This approach seems to bring some temporary inconsistency problems on test.

We need to use the isActive() method to make sure that we don't miss statuses that are still considered active in the future.

Environment

None

Status

Assignee

Fabio Massimo Ercoli

Reporter

Fabio Massimo Ercoli

Labels

None

Worked in

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Community Help Wanted

None

Suitable for new contributors

None

Requires Release Note

None

backportDecision

None

backportReEvaluate

None

Components

Fix versions

Affects versions

5.4.0.Alpha1

Priority

Major