File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
framework-docs/modules/ROOT/pages/data-access/transaction/declarative Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,14 @@ status and with an inner transaction's locks released immediately after its comp
59
59
Such an independent inner transaction can also declare its own isolation level, timeout,
60
60
and read-only settings and not inherit an outer transaction's characteristics.
61
61
62
+ NOTE: The resources attached to the outer transaction will remain bound there while
63
+ the inner transaction acquires its own resources such as a new database connection.
64
+ This may lead to exhaustion of the connection pool and potentially to a deadlock if
65
+ several threads have an active outer transaction and wait to acquire a new connection
66
+ for their inner transaction, with the pool not being able to hand out any such inner
67
+ connection anymore. Do not use `PROPAGATION_REQUIRES_NEW` unless your connection pool
68
+ is appropriately sized, exceeding the number of concurrent threads by at least 1.
69
+
62
70
[[tx-propagation-nested]]
63
71
== Understanding `PROPAGATION_NESTED`
64
72
You can’t perform that action at this time.
0 commit comments