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 @@ -226,7 +226,23 @@ Replica Sets
226226- Ideally run :dbcommand:`compact` on a secondary. See option
227227 ``force`` above for information regarding compacting the primary.
228228
229- .. include:: /includes/extracts/fact-command-puts-secondary-into-recovering-compact.rst
229+ - Starting in MongoDB 5.1 (and 5.0.3, 4.4.9, and 4.2.18): a secondary is
230+ not available when :dbcommand:`compact` is running. The secondary does
231+ not enter the :replstate:`RECOVERING` state.
232+
233+ - For previous MongoDB versions: on secondaries, :dbcommand:`compact`
234+ forces the secondary to enter the :replstate:`RECOVERING` state. Read
235+ operations issued to an instance in the :replstate:`RECOVERING` state
236+ will fail. This prevents clients from reading during the operation.
237+ When the operation completes, the secondary returns to
238+ :replstate:`SECONDARY` state.
239+
240+ See :doc:`/reference/replica-states/` for more information about replica
241+ set member states.
242+
243+ See :doc:`/tutorial/perform-maintence-on-replica-set-members` for an
244+ example replica set maintenance procedure to maximize availability
245+ during maintenance operations.
230246
231247Sharded Clusters
232248~~~~~~~~~~~~~~~~
You can’t perform that action at this time.
0 commit comments