File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -206,7 +206,26 @@ Index Operations When :readconcern:`"majority"` Read Concern is Disabled
206
206
Size Limitations
207
207
~~~~~~~~~~~~~~~~
208
208
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.
210
229
211
230
.. _rollback-time-limit:
212
231
You can’t perform that action at this time.
0 commit comments