Skip to content

Commit e929c80

Browse files
jmd-mongonpentrel
authored andcommitted
DOCS-14135 enableMajorityReadConcern may only be set to true in v5.0
1 parent f75d68b commit e929c80

24 files changed

+78
-333
lines changed

source/core/replica-set-arbiter.txt

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -48,24 +48,6 @@ number of votes to break a tie:
4848

4949
.. end-content-even-votes-example
5050

51-
Read Concern ``majority`` and Three-Member PSA
52-
----------------------------------------------
53-
54-
.. warning:: For 3-Member Primary-Secondary-Arbiter Architecture*
55-
56-
57-
If you have a three-member replica set with a
58-
primary-secondary-arbiter (PSA) architecture or a sharded cluster
59-
with a three-member PSA shards, the cache pressure will increase if
60-
any data bearing node is down and support for
61-
:readconcern:`"majority"` read concern is enabled.
62-
63-
To prevent the storage cache pressure from immobilizing a deployment
64-
with a three-member primary-secondary-arbiter (PSA) architecture,
65-
you can disable read concern "majority" starting in MongoDB 4.0.3
66-
(and 3.6.1+). For more information, see
67-
:ref:`disable-read-concern-majority`.
68-
6951
Replica Set Protocol Version and Arbiter
7052
-----------------------------------------
7153

source/core/transactions-production-consideration.txt

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -147,37 +147,6 @@ Sharded Clusters and Arbiters
147147

148148
.. include:: /includes/extracts/transactions-arbiters.rst
149149

150-
.. |disabledrcmaj| replace:: :ref:`transactions-psa`
151-
152-
.. _transactions-psa:
153-
154-
3-Member Primary-Secondary-Arbiter Architecture
155-
-----------------------------------------------
156-
157-
For a three-member replica set with a primary-secondary-arbiter (PSA)
158-
architecture or a sharded cluster with a three-member PSA shards, you
159-
may have :ref:`disabled read concern "majority"
160-
<disable-read-concern-majority>` to avoid cache pressure.
161-
162-
.. include:: /includes/extracts/transactions-read-concern-majority-sharded-clusters.rst
163-
164-
.. include:: /includes/extracts/transactions-read-concern-majority-replica-set.rst
165-
166-
.. tip::
167-
168-
To check if read concern "majority" is disabled, You can run
169-
:method:`db.serverStatus()` on the :binary:`~bin.mongod` instances
170-
and check the :serverstatus:`storageEngine.supportsCommittedReads`
171-
field. If ``false``, read concern "majority" is disabled.
172-
173-
.. seealso::
174-
175-
- :option:`--enableMajorityReadConcern false <mongod
176-
--enableMajorityReadConcern>`
177-
178-
- :setting:`replication.enableMajorityReadConcern: false
179-
<replication.enableMajorityReadConcern>`.
180-
181150
.. _txns-locks:
182151

183152
Acquiring Locks

source/core/transactions-sharded-clusters.txt

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -113,27 +113,6 @@ Arbiters
113113

114114
.. include:: /includes/extracts/transactions-arbiters.rst
115115

116-
.. |disabledrcmaj| replace:: :ref:`transactions-sharded-clusters-psa`
117-
118-
.. _transactions-sharded-clusters-psa:
119-
120-
Three Member Primary-Secondary-Arbiter Shards
121-
---------------------------------------------
122-
123-
For a sharded cluster with three-member PSA shards, you may have
124-
:ref:`disabled read concern "majority" <disable-read-concern-majority>`
125-
(i.e. :option:`--enableMajorityReadConcern false <mongod
126-
--enableMajorityReadConcern>` or
127-
:setting:`replication.enableMajorityReadConcern: false
128-
<replication.enableMajorityReadConcern>`) to avoid cache pressure.
129-
130-
.. include:: /includes/extracts/transactions-read-concern-majority-sharded-clusters.rst
131-
132-
To check if read concern "majority" is disabled,
133-
You can run :method:`db.serverStatus()` and check the
134-
:serverstatus:`storageEngine.supportsCommittedReads` field. If
135-
``false``, read concern "majority" is disabled.
136-
137116
Backups and Restores
138117
--------------------
139118

source/core/transactions.txt

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -713,34 +713,6 @@ Arbiters
713713

714714
.. include:: /includes/extracts/transactions-arbiters.rst
715715

716-
.. |disabledrcmaj| replace:: :ref:`transactions-disabled-rc-majority`
717-
718-
.. _transactions-disabled-rc-majority:
719-
720-
Disabled Read Concern Majority
721-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
722-
723-
A 3-member PSA (Primary-Secondary-Arbiter) replica set or a sharded
724-
cluster with 3-member PSA shards may have disabled read concern
725-
majority (:option:`--enableMajorityReadConcern false <mongod
726-
--enableMajorityReadConcern>` or
727-
:setting:`replication.enableMajorityReadConcern: false
728-
<replication.enableMajorityReadConcern>`)
729-
730-
.. include:: /includes/extracts/transactions-read-concern-majority-sharded-clusters.rst
731-
732-
.. include:: /includes/extracts/transactions-read-concern-majority-replica-set.rst
733-
734-
.. tip::
735-
736-
To check if read concern "majority" is disabled, You can run
737-
:method:`db.serverStatus()` on the :binary:`~bin.mongod` instances
738-
and check the :serverstatus:`storageEngine.supportsCommittedReads`
739-
field. If ``false``, read concern "majority" is disabled.
740-
741-
For more information, see :ref:`transactions-psa` and
742-
:ref:`transactions-sharded-clusters-psa`.
743-
744716
.. _transactions-wcmajority-disabled:
745717

746718
Shard Configuration Restriction

source/includes/extracts-transactions.yaml

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -294,29 +294,6 @@ content: |
294294
# This is included in pages talking more about disabling rc majority and its effects.
295295

296296
# Separate includes (see below) for transactions pages where the transactions leads as the subject
297-
---
298-
ref: transactions-read-concern-majority-sharded-clusters
299-
content: |
300-
301-
On sharded clusters,
302-
- If a transaction involves a shard that has :ref:`disabled read
303-
concern "majority" <disable-read-concern-majority>`, you cannot
304-
use read concern :readconcern:`"snapshot"` for the transaction.
305-
You can only use read concern :readconcern:`"local"` or
306-
:readconcern:`"majority"` for the transaction. If you use read
307-
concern :readconcern:`"snapshot"`, the transaction errors and
308-
aborts.
309-
310-
.. code-block:: none
311-
:copyable: false
312-
313-
readConcern level 'snapshot' is not supported in sharded clusters when enableMajorityReadConcern=false.
314-
315-
- Transactions whose write operations span multiple shards will
316-
error and abort if any of the transaction's read or write
317-
operations involves a shard that has disabled read concern
318-
``"majority"``.
319-
320297
---
321298
ref: transactions-read-concern-majority-replica-set
322299
content: |
@@ -459,8 +436,6 @@ content: |
459436
and abort if any transaction operation reads from or writes to a
460437
shard that contains an arbiter.
461438
462-
See also |disabledrcmaj| for transaction restrictions on shards that
463-
have disabled read concern majority.
464439
---
465440
ref: transactions-committed-visibility
466441
content: |
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Starting in MongoDB 5.0,
2+
:setting:`~replication.enableMajorityReadConcern` and
3+
:option:`--enableMajorityReadConcern` cannot be changed
4+
and are always set to ``true``. In earlier versions of MongoDB,
5+
these were configurable.

source/includes/fact-enable-majority-readConcern.rst

Lines changed: 0 additions & 8 deletions
This file was deleted.

source/reference/command/aggregate.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -543,8 +543,6 @@ majority of the nodes.
543543

544544
.. important::
545545

546-
- .. include:: /includes/fact-enable-majority-readConcern.rst
547-
548546
- .. include:: /includes/fact-aggregate-readConcern.rst
549547

550548
- .. include:: /includes/fact-readConcern-most-recent-data-in-node.rst

source/reference/command/count.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,8 +302,6 @@ majority of the nodes.
302302

303303
.. important::
304304

305-
- .. include:: /includes/fact-enable-majority-readConcern.rst
306-
307305
- To use the ``readConcern`` level of ``"majority"``, you must specify
308306
a nonempty ``query`` condition.
309307

source/reference/command/distinct.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -298,9 +298,7 @@ majority of the nodes.
298298

299299
.. note::
300300

301-
- .. include:: /includes/fact-enable-majority-readConcern.rst
302-
303-
- .. include:: /includes/fact-readConcern-most-recent-data-in-node.rst
301+
.. include:: /includes/fact-readConcern-most-recent-data-in-node.rst
304302

305303
.. code-block:: javascript
306304

0 commit comments

Comments
 (0)