Skip to content

Commit 56d75ab

Browse files
authored
DOCSP-35337: Update rollback information (#5929) (#6234)
* empty commit * DOCSP-35337: Update rollback size limits * link to term * small style guide fix * wording * KD feedback * indent * small edit
1 parent f31c645 commit 56d75ab

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

source/core/replica-set-rollbacks.txt

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,26 @@ Index Operations When :readconcern:`"majority"` Read Concern is Disabled
206206
Size Limitations
207207
~~~~~~~~~~~~~~~~
208208

209-
MongoDB does not limit the amount of data you can roll back.
209+
MongoDB supports the following rollback algorithms, which have different size limitations:
210+
211+
- **Recover to a Timestamp**, where a former primary reverts to a consistent point in time and
212+
applies operations until it catches up to the sync source's branch of history. This is the
213+
default rollback algorithm.
214+
215+
When using this algorithm, MongoDB does not limit the amount of data you can roll back.
216+
217+
- **Rollback via Refetch**, where a former primary finds the common point between its :term:`oplog`
218+
and the sync source's oplog. Then, the member examines and reverts all operations in its oplog until
219+
it reaches this common point. Rollback via Refetch occurs only when the
220+
:setting:`~replication.enableMajorityReadConcern` setting in your configuration file is set to
221+
``false``.
222+
223+
When using this algorithm, MongoDB can only roll back up to 300 MB of data.
224+
225+
.. note::
226+
227+
Starting in MongoDB 5.0, :setting:`~replication.enableMajorityReadConcern` is set to
228+
``true`` and cannot be changed.
210229

211230
.. _rollback-time-limit:
212231

0 commit comments

Comments
 (0)