File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -1993,6 +1993,14 @@ status and with an inner transaction's locks released immediately after its comp
1993
1993
Such an independent inner transaction can also declare its own isolation level, timeout,
1994
1994
and read-only settings and not inherit an outer transaction's characteristics.
1995
1995
1996
+ NOTE: The resources attached to the outer transaction will remain bound there while
1997
+ the inner transaction acquires its own resources such as a new database connection.
1998
+ This may lead to exhaustion of the connection pool and potentially to a deadlock if
1999
+ several threads have an active outer transaction and wait to acquire a new connection
2000
+ for their inner transaction, with the pool not being able to hand out any such inner
2001
+ connection anymore. Do not use `PROPAGATION_REQUIRES_NEW` unless your connection pool
2002
+ is appropriately sized, exceeding the number of concurrent threads by at least 1.
2003
+
1996
2004
[[tx-propagation-nested]]
1997
2005
===== Understanding `PROPAGATION_NESTED`
1998
2006
You can’t perform that action at this time.
0 commit comments