Skip to content

Commit

Permalink
DOCSP-35337: Update rollback information (#5929) (#6229)
Browse files Browse the repository at this point in the history
* empty commit

* DOCSP-35337: Update rollback size limits

* link to term

* small style guide fix

* wording

* KD feedback

* indent

* small edit
  • Loading branch information
norareidy authored Feb 5, 2024
1 parent fe9ce97 commit 5d943bd
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion source/core/replica-set-rollbacks.txt
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,26 @@ Index Operations When :readconcern:`"majority"` Read Concern is Disabled
Size Limitations
~~~~~~~~~~~~~~~~

MongoDB does not limit the amount of data you can roll back.
MongoDB supports the following rollback algorithms, which have different size limitations:

- **Recover to a Timestamp**, where a former primary reverts to a consistent point in time and
applies operations until it catches up to the sync source's branch of history. This is the
default rollback algorithm.

When using this algorithm, MongoDB does not limit the amount of data you can roll back.

- **Rollback via Refetch**, where a former primary finds the common point between its :term:`oplog`
and the sync source's oplog. Then, the member examines and reverts all operations in its oplog until
it reaches this common point. Rollback via Refetch occurs only when the
:setting:`~replication.enableMajorityReadConcern` setting in your configuration file is set to
``false``.

When using this algorithm, MongoDB can only roll back up to 300 MB of data.

.. note::

Starting in MongoDB 5.0, :setting:`~replication.enableMajorityReadConcern` is set to
``true`` and cannot be changed.

.. _rollback-time-limit:

Expand Down

0 comments on commit 5d943bd

Please sign in to comment.