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

compact command is misleading on the behaviour during runtime

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • v1.3.3
    • None
    • manual
    • None

    Description

      Regarding this detail: http://docs.mongodb.org/manual/reference/command/compact/#blocking
      During a compaction in a replica-set this suggests that operations would be blocked until the compaction completes, but this is often not the case.

      The warning at the replica-sets section hints as to why: http://docs.mongodb.org/manual/reference/command/compact/#replica-sets
      "On secondaries, the compact command forces the secondary to enter RECOVERING state."
      Queries received by a node in other than SECONDARY or PRIMARY states fail with an error message, something to the effect of "not PRIMARY or SECONDARY". The ops do not block.

      Attachments

        Activity

          People

            sam.kleinman Sam Kleinman (Inactive)
            andrew.ryder@mongodb.com Andrew Ryder (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

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