Skip to content

Commit 981c750

Browse files
jason-price-mongodbjeff-allen-mongo
authored andcommitted
DOCS-13868 chunk errors in sharded transactions
1 parent 4234612 commit 981c750

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
@@ -4014,11 +4014,11 @@ Transaction Parameters
40144014
*Default*: 60
40154015

40164016
Specifies the lifetime of :doc:`multi-document transactions
4017-
</core/transactions>`. Transactions that exceeds this limit are
4017+
</core/transactions>`. Transactions that exceed this limit are
40184018
considered expired and will be aborted by a periodic cleanup
40194019
process. The cleanup process runs every
40204020
:parameter:`transactionLifetimeLimitSeconds`/2 seconds or at least
4021-
once per every 60 seconds.
4021+
once every 60 seconds.
40224022

40234023
The cleanup process helps relieve storage cache pressure.
40244024

@@ -4042,7 +4042,9 @@ Transaction Parameters
40424042

40434043
To set the parameter for a sharded cluster, the parameter must be
40444044
modified for all shard replica set members.
4045-
4045+
4046+
.. include:: /includes/transactionLifetimeLimitSeconds-parameter.rst
4047+
40464048
.. parameter:: maxTransactionLockRequestTimeoutMillis
40474049

40484050
.. 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)