Skip to content

Commit 352f20d

Browse files
authored
Merge pull request #49559 from MichalMaler/datasource-guice-review
DOCS: QE feedback application and cosmetic rewording to Configure Datasources guide
2 parents 72e5719 + c207c18 commit 352f20d

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

docs/src/main/asciidoc/datasource.adoc

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -678,9 +678,15 @@ You can override this by setting the `transactions` configuration property:
678678
* `quarkus.datasource.jdbc.transactions` for default unnamed datasource
679679
* `quarkus.datasource._<datasource-name>_.jdbc.transactions` for named datasource
680680

681-
When a datasource is enabled for XA (by setting `quarkus.datasource[.optional name].jdbc.transactions` to `xa`) and the transaction recovery system is enabled (by setting the property `quarkus.transaction-manager.enable-recovery` to `true`), then the datasource is automatically registered for recovery.
682-
This is a safe default, but you can override this behaviour on a per-datasource basis by setting `quarkus.datasource.jdbc.enable-recovery` or `quarkus.datasource."datasource-name".jdbc.enable-recovery` to `false`.
683-
Use only for advanced use cases and if you know recovery will not be necessary; otherwise it can result in data loss, data unavailability, or both, because resources can become locked indefinitely.
681+
When a datasource is configured for XA transactions by setting `quarkus.datasource[.optional name].jdbc.transactions=xa` and the transaction recovery system is enabled by using `quarkus.transaction-manager.enable-recovery=true`, the datasource is automatically registered for recovery.
682+
This is the preferred and safe default.
683+
You can override this behavior for individual datasources by setting `quarkus.datasource.jdbc.enable-recovery=false` or `quarkus.datasource."datasource-name".jdbc.enable-recovery=false`.
684+
685+
[IMPORTANT]
686+
====
687+
Change this setting only in advanced use cases and only if you are certain recovery is not required.
688+
Incorrect configuration can lead to data loss, data unavailability, or both, due to resources remaining locked indefinitely.
689+
====
684690

685691
For more information, see the <<configuration-reference,Configuration reference>> section below.
686692
To facilitate the storage of transaction logs in a database by using JDBC, see the xref:transaction.adoc#jdbcstore[Configuring transaction logs to be stored in a datasource] section of the xref:transaction.adoc[Using transactions in Quarkus] guide.

0 commit comments

Comments
 (0)