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

[Server] compact no longer enters maintenance mode

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Done
    • 5.0.3, 4.4.9, 4.2.18, 5.1.0-rc0
    • 4.2.0, 4.4.0, 5.0.0, 5.2.0, 5.3.0
    • manual, Server
    • None
    • 3
    • ServerDocs2022: Apr5 - Apr12

    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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:
                1 year, 24 weeks, 5 days ago