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

compact always creates a new extent

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.0.6, 2.1.0
    • Affects Version/s: None
    • Component/s: Storage
    • None

      It looks like the compact command will create a new extent, at least if there isn't an extent on the free list. For large collections, the new extents will be large and usually require a new datafile to be allocated every time compact is run.

      Experimentally I've run several compact commands back to back and seen a new file get allocated every or almost every time. This was after hitting the max file size, and it seemed like compact was creating a new extent rather than reusing a free list extent in this case.

            Assignee:
            milkie@mongodb.com Eric Milkie
            Reporter:
            aaron Aaron Staple
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: