Details
Description
In our docs, we say that compact enters maintenance mode, or RECOVERING.
https://docs.mongodb.com/v5.0/reference/command/compact/#replica-sets
On secondaries, the compact command forces the secondary to enter RECOVERING state. Read operations issued to an instance in the RECOVERING state will fail. This prevents clients from reading during the operation. When the operation completes, the secondary returns to SECONDARY state.
See Replica Set Member States for more information about replica set member states.
SERVER-55589 causes replSetMaintenance to take the RSTL, and we decided compact should no longer enter maintenance mode. Therefore, we no longer see a replica set state change from SECONDARY to RECOVERING.
The assertion about compact entering RECOVERING is no longer accurate.
Attachments
Issue Links
- is related to
-
DOCS-14122 Add clarification about compact command behavior on secondary nodes in 4.4
-
- Closed
-
-
SERVER-55589 replSetMaintenance command does not take the RSTL
-
- Closed
-