Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GH-8748: JDBC locks: use READ_COMMITTED isolation #8749

Merged
merged 1 commit into from
Oct 9, 2023

Conversation

artembilan
Copy link
Member

Fixes #8748

The Oracle DB throws ORA-08177: can't serialize access for this transaction when other transaction on the row has begun

  • Change the isolation for DefaultLockRepository.acquire() transaction to the READ_COMMITTED for what database automatically and silently restarts the entire SQL statement, and no error occurs.
  • Add oracle dependencies to JDBC module
  • Introduce OracleContainerTest and implement it for OracleLockRegistryTests

Cherry-pick to 6.1.x & 6.0.x

Fixes spring-projects#8748

The Oracle DB throws `ORA-08177: can't serialize access for this transaction`
when other transaction on the row has begun

* Change the isolation for `DefaultLockRepository.acquire()` transaction
to the `READ_COMMITTED` for what database automatically and silently
restarts the entire SQL statement, and no error occurs.
* Add `oracle` dependencies to JDBC module
* Introduce `OracleContainerTest` and implement it for `OracleLockRegistryTests`

**Cherry-pick to `6.1.x` & `6.0.x`**
@garyrussell garyrussell merged commit fa06940 into spring-projects:main Oct 9, 2023
2 checks passed
garyrussell pushed a commit that referenced this pull request Oct 9, 2023
Fixes #8748

The Oracle DB throws `ORA-08177: can't serialize access for this transaction`
when other transaction on the row has begun

* Change the isolation for `DefaultLockRepository.acquire()` transaction
to the `READ_COMMITTED` for what database automatically and silently
restarts the entire SQL statement, and no error occurs.
* Add `oracle` dependencies to JDBC module
* Introduce `OracleContainerTest` and implement it for `OracleLockRegistryTests`

**Cherry-pick to `6.1.x` & `6.0.x`**
garyrussell pushed a commit that referenced this pull request Oct 9, 2023
Fixes #8748

The Oracle DB throws `ORA-08177: can't serialize access for this transaction`
when other transaction on the row has begun

* Change the isolation for `DefaultLockRepository.acquire()` transaction
to the `READ_COMMITTED` for what database automatically and silently
restarts the entire SQL statement, and no error occurs.
* Add `oracle` dependencies to JDBC module
* Introduce `OracleContainerTest` and implement it for `OracleLockRegistryTests`

**Cherry-pick to `6.1.x` & `6.0.x`**
@garyrussell
Copy link
Contributor

...and cherry-picked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

JDBC Lock Registry not working with Oracle
2 participants