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

OptimisticLockException silently swallowed in JTA environment

Description

This is a regression from H4.

1. EntityVerifyVersionProcess#doBeforeTransactionCompletion throws OptimisticLockException

2. ActionQueue.BeforeTransactionCompletionProcessQueue#beforeTransactionCompletion re-throws it

3. JtaTransactionCoordinatorImpl#beforeCompletion calls physicalTransactionDelegate.markRollbackOnly()

There is nothing in the log and the exception is gone. All you get is a rolled back transaction.

(I've noticed this new behavior in other cases as well but at least with a SQLExceptionHelperManagerUtilSpringSpringSpringFactory thing logging e.g. a ConstraintViolationException. Logging and throwing exceptions is problematic in production, of course.)

Environment

5.0.0-SNAPSHOT

Status

Assignee

Unassigned

Reporter

Christian Bauer

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Affects versions

5.0.0.CR1

Priority

Major