@@ -41,9 +41,8 @@ Collect Rollback Data
41
41
Configure Rollback Data
42
42
~~~~~~~~~~~~~~~~~~~~~~~
43
43
44
- Starting in version 4.0, MongoDB adds the parameter
45
- :parameter:`createRollbackDataFiles` to control whether or not rollback
46
- files are created during rollbacks.
44
+ The :parameter:`createRollbackDataFiles` parameter
45
+ controls whether or not rollback files are created during rollbacks.
47
46
48
47
.. _replica-set-rollback-data:
49
48
@@ -115,7 +114,7 @@ By default, when a rollback occurs, MongoDB writes the rollback data to
115
114
if (foundcollection) { break; }
116
115
}
117
116
118
- .. tab:: MongoDB 4.2-4.0
117
+ .. tab:: MongoDB 4.2
119
118
:tabid: 4.2
120
119
121
120
For each collection whose data is rolled back, the
@@ -137,20 +136,6 @@ By default, when a rollback occurs, MongoDB writes the rollback data to
137
136
138
137
where ``<dbpath>`` is the :binary:`~bin.mongod`'s :setting:`~storage.dbPath`.
139
138
140
- .. tab:: MongoDB 3.6 and earlier
141
- :tabid: 3.6
142
-
143
- In versions 3.6 and earlier, rollback files are located directly under the
144
- ``<dbpath>/rollback`` directory with the filenames of the form
145
- ``<db>.<collection>.<timestamp>.bson``.
146
-
147
- For example, if data for the collection ``comments`` in the
148
- ``reporting`` database rolled back:
149
-
150
- .. code-block:: none
151
- :copyable: false
152
-
153
- <dbpath>/rollbacktest.col.2020-02-19T04-46-22.0.bson
154
139
155
140
Rollback Data Exclusion
156
141
~~~~~~~~~~~~~~~~~~~~~~~
@@ -220,35 +205,19 @@ Index Operations When :readconcern:`"majority"` Read Concern is Disabled
220
205
Size Limitations
221
206
~~~~~~~~~~~~~~~~
222
207
223
- .. versionchanged:: 4.0
224
-
225
- Starting in version 4.0, MongoDB has no limit on the amount of data
226
- that can be rolled back.
227
-
228
- In previous versions, a :binary:`~bin.mongod` instance will not
229
- roll back more than 300 megabytes of data and requires manual
230
- intervention if more than 300 megabytes of data need to be rolled back.
208
+ MongoDB does not limit the amount of data you can roll back.
231
209
232
210
.. _rollback-time-limit:
233
211
234
212
Rollback Elapsed Time Limitations
235
213
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
236
214
237
- Starting in version 4.0, the rollback time limit defaults to 24 hours
238
- and is configurable using the parameter
239
- :parameter:`rollbackTimeLimitSecs`:
240
-
241
- - In MongoDB 4.2+ and 4.0.13+, the rollback time limit is calculated
242
- between the first operation after the common point and the last point
243
- in the oplog for the member to roll back.
244
-
245
- - In MongoDB 4.0.0-4.0.12, the rollback time limit is calculated between the
246
- common point and the last point in the oplog for the member to roll
247
- back.
215
+ The rollback time limit defaults to 24 hours and is configurable using
216
+ the :parameter:`rollbackTimeLimitSecs` parameter.
248
217
249
- In MongoDB 3.6 and earlier, the rollback time limit is not configurable.
250
- For these versions, rollback is limited by the amount of data, with a
251
- maximum of 300 megabytes .
218
+ MongoDB measures elapsed time as the time between the first common
219
+ operation in the oplogs to the last entry in the oplog of the member
220
+ being rolled back .
252
221
253
222
.. seealso::
254
223
0 commit comments