File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -198,7 +198,23 @@ Replica Sets
198
198
- Ideally run :dbcommand:`compact` on a secondary. See option
199
199
``force:true`` above for information regarding compacting the primary.
200
200
201
- .. include:: /includes/extracts/fact-command-puts-secondary-into-recovering-compact.rst
201
+ - Starting in MongoDB 4.2.18: a secondary is
202
+ not available when :dbcommand:`compact` is running. The secondary does
203
+ not enter the :replstate:`RECOVERING` state.
204
+
205
+ - For previous MongoDB versions: on secondaries, :dbcommand:`compact`
206
+ forces the secondary to enter the :replstate:`RECOVERING` state. Read
207
+ operations issued to an instance in the :replstate:`RECOVERING` state
208
+ will fail. This prevents clients from reading during the operation.
209
+ When the operation completes, the secondary returns to
210
+ :replstate:`SECONDARY` state.
211
+
212
+ See :doc:`/reference/replica-states/` for more information about replica
213
+ set member states.
214
+
215
+ See :doc:`/tutorial/perform-maintence-on-replica-set-members` for an
216
+ example replica set maintenance procedure to maximize availability
217
+ during maintenance operations.
202
218
203
219
Sharded Clusters
204
220
~~~~~~~~~~~~~~~~
You can’t perform that action at this time.
0 commit comments