Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-15125

[Server] compact no longer enters maintenance mode

      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.

            Assignee:
            jason.price@mongodb.com Jason Price
            Reporter:
            edwin.zhou@mongodb.com Edwin Zhou
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:
              2 years, 2 weeks, 2 days ago