Skip to content

Commit 5d943bd

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

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

source/core/replica-set-rollbacks.txt

+20-1
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,26 @@ Index Operations When :readconcern:`"majority"` Read Concern is Disabled
207207
Size Limitations
208208
~~~~~~~~~~~~~~~~
209209

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

212231
.. _rollback-time-limit:
213232

0 commit comments

Comments
 (0)