Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-71678

Allow compact to run on system collections

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 7.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Storage Execution
    • Fully Compatible
    • Execution Team 2023-02-20
    • None
    • 0
    • None
    • None
    • None
    • None
    • None
    • None

      System collections can't be compacted:

      // Items in system.* cannot be moved as there might be pointers to them.
      uassert(ErrorCodes::InvalidNamespace, "can't compact a system namespace", !nss.isSystem());
      

      This restriction was added in SERVER-11595 and is likely an MMAP limitation. With WiredTiger being the default storage engine, this is no longer necessary as WiredTiger supports online compaction.

            Assignee:
            kaitlin.mahar@mongodb.com Kaitlin Mahar
            Reporter:
            gregory.wlodarek@mongodb.com Gregory Wlodarek
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: