Skip to content

Commit be8a379

Browse files
committed
DOCS-14433 config.transactions read concern disallowed
1 parent 8d51a52 commit be8a379

File tree

4 files changed

+24
-0
lines changed

4 files changed

+24
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Starting in MongoDB 5.0, non-transaction reads are not allowed on
2+
the :data:`config.transactions` collection with the following
3+
read concerns and options:
4+
5+
- :readconcern:`"snapshot"`
6+
- :readconcern:`"majority"` and the
7+
:ref:`afterClusterTime<afterClusterTime>` option is set
8+
- When using a :driver:`MongoDB Driver </>`
9+
and :readconcern:`"majority"`
10+
within a :ref:`causally consistent session<sessions>`

source/reference/config-database.txt

+4
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ The collections in the ``config`` database support:
2626
Restrictions
2727
------------
2828

29+
.. include:: /includes/fact-5.0-non-transactional-config-reads.rst
30+
2931
.. important:: The schema of the ``config`` database is
3032
*internal* and may change between releases of MongoDB. The
3133
``config`` database is not a dependable API, and users should not
@@ -524,6 +526,8 @@ instance.
524526
the ``system.sessions`` collection into at least 1024 chunks and
525527
distributes the chunks uniformly across shards in the cluster.
526528

529+
.. _config.transactions:
530+
527531
.. data:: config.transactions
528532

529533
The ``transactions`` collection stores records used to support

source/release-notes/5.0-compatibility.txt

+5
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,11 @@ Replica Sets
153153
Starting in MongoDB 5.0, :rsconf:`~members[n].secondaryDelaySecs`
154154
replaces ``slaveDelay``. This change is not backwards compatible.
155155

156+
Non-transactional Reads on ``config.transactions``
157+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
158+
159+
.. include:: /includes/fact-5.0-non-transactional-config-reads.rst
160+
156161
Manual Oplog Writes
157162
~~~~~~~~~~~~~~~~~~~
158163

source/release-notes/5.0.txt

+5
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,11 @@ Starting in MongoDB 5.0, these database commands and
347347
Replica Sets
348348
------------
349349

350+
Non-transactional Reads on ``config.transactions``
351+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
352+
353+
.. include:: /includes/fact-5.0-non-transactional-config-reads.rst
354+
350355
``hello`` Command
351356
~~~~~~~~~~~~~~~~~
352357

0 commit comments

Comments
 (0)