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

Remove acquisition of database and collection locks in compaction

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • RSS Sydney
    • Execution Team 2024-04-29, RSS Sydney - 2024-05-13

      To do this, we need to remove supportsOnlineCompaction(). WiredTiger supports online compaction, so the case where this isn't supported is not tested.

      Once we remove this, we no longer need database and collections locks during compaction and we can get the collection from the CollectionCatalog. All that's necessary is the global MODE_IS lock to prevent the storage engine from shutting down while compaction is running. The global MODE_IS lock should skip acquiring the RSTL and flow control ticket.

      This will also allow other DDL operations needing stronger locks to run during compaction, which could also block oplog application today.

            Assignee:
            clarisse.cheah@mongodb.com Clarisse Cheah
            Reporter:
            gregory.wlodarek@mongodb.com Gregory Wlodarek
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: