Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Michal Maléř <mmaler@redhat.com>
  • Loading branch information
MichalMaler committed Feb 10, 2025
1 parent 953eaf4 commit 1ac257e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/src/main/asciidoc/datasource.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -296,11 +296,11 @@ Because of this, you can also use `javax.sql.DataSource` as the injected type.

===== Oracle considerations

As documented in link:https://github.com/quarkusio/quarkus/issues/36265[issue #36265],
Oracle unexpectedly commits uncommitted transactions when closing a connection.
As documented in link:https://github.com/quarkusio/quarkus/issues/36265[issue #36265], Oracle unexpectedly commits uncommitted transactions when closing a connection.
This means that when stopping Quarkus, in-progress transactions might be committed even if they are incomplete.

Since this behavior is unexpected and could lead to data loss, an interceptor rolls back any unfinished transactions when closing a connection, unless XA transactions are used, in which case the transaction manager handles the rollback.
Because this behavior is unexpected and can lead to data loss, an interceptor rolls back any unfinished transactions when closing a connection.
However, if you use XA transactions, the transaction manager handles the rollback.

If the behavior introduced in 3.18 causes issues for your workload, disable it by setting the `-Dquarkus-oracle-no-automatic-rollback-on-connection-close` system property to `true`.
If possible, report your use case in our link:https://github.com/quarkusio/quarkus/issues[issue tracker] so we can adjust this behavior if needed.
Expand Down

0 comments on commit 1ac257e

Please sign in to comment.