Skip to content

Commit 74727ed

Browse files
jason-price-mongodbjeff-allen-mongo
authored andcommitted
DOCS-13868 chunk errors in sharded transactions
1 parent 9c99b4f commit 74727ed

File tree

3 files changed

+20
-3
lines changed

3 files changed

+20
-3
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Starting in MongoDB 5.0, if you change the
2+
:parameter:`transactionLifetimeLimitSeconds` parameter, you must also
3+
change :parameter:`transactionLifetimeLimitSeconds` to the same value on
4+
all config server replica set members. Keeping this value consistent:
5+
6+
- Ensures the routing table history is retained for at least as long as
7+
the transaction lifetime limit on the shard replica set members.
8+
9+
- Reduces the transaction retry frequency and therefore improves
10+
performance.

source/reference/parameters.txt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4110,11 +4110,11 @@ Transaction Parameters
41104110
*Default*: 60
41114111

41124112
Specifies the lifetime of :doc:`multi-document transactions
4113-
</core/transactions>`. Transactions that exceeds this limit are
4113+
</core/transactions>`. Transactions that exceed this limit are
41144114
considered expired and will be aborted by a periodic cleanup
41154115
process. The cleanup process runs every
41164116
:parameter:`transactionLifetimeLimitSeconds`/2 seconds or at least
4117-
once per every 60 seconds.
4117+
once every 60 seconds.
41184118

41194119
The cleanup process helps relieve storage cache pressure.
41204120

@@ -4138,7 +4138,9 @@ Transaction Parameters
41384138

41394139
To set the parameter for a sharded cluster, the parameter must be
41404140
modified for all shard replica set members.
4141-
4141+
4142+
.. include:: /includes/transactionLifetimeLimitSeconds-parameter.rst
4143+
41424144
.. parameter:: maxTransactionLockRequestTimeoutMillis
41434145

41444146
.. versionadded:: 4.0

source/release-notes/5.0-compatibility.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,11 @@ If ``auditLog.runtimeConfiguration`` is set to ``false`` and an audit
337337
filter config document is present, then a startup warning will be
338338
issued but the server will not abort.
339339

340+
Reduce Risk of Stale Chunks in Sharded Transactions
341+
---------------------------------------------------
342+
343+
.. include:: /includes/transactionLifetimeLimitSeconds-parameter.rst
344+
340345
General Changes
341346
---------------
342347

0 commit comments

Comments
 (0)