Rework LockTest#testContendedPessimisticLock so that it can work on Oracle without throwing exceptions

Description

The LockTest#testContendedPessimisticLock test fails on Oracle because the underlying Connection gets closed upon getting a lock acquisition failure.

Environment

None

Status

Assignee

Vlad Mihalcea

Reporter

Vlad Mihalcea

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

5.3.1

Priority

Major