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

Make ViewCatalog copy-on-write

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.9.0
    • None
    • Storage
    • None
    • Fully Compatible
    • Execution Team 2020-12-14

    Description

      SERVER-52559 needs to make this lock lock-free, but the db.system.views collection lock is currently taken to avoid cycles in view definition resolution: i.e. allowing views to continue to be created or modified during aggregation pipeline view definition resolution can lead to an endless cycle.

      A way to resolve SERVER-52559's issue is to make the ViewCatalog copy-on-write. Lock-free reads already fetch shared_ptr<ViewCatalog> in order to avoid the ViewCatalog destructing during lock-free operation. This change would make the ViewCatalog immutable for lock-free reads.

      Attachments

        Activity

          People

            henrik.edin@mongodb.com Henrik Edin
            dianna.hohensee@mongodb.com Dianna Hohensee (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: