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

The UUIDCatalog onCreateCollection observer should atomically unregister and re-register catalog entries

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.0.1, 4.1.1
    • Affects Version/s: None
    • Component/s: Catalog
    • Fully Compatible
    • ALL
    • v4.0
    • Storage NYC 2018-07-02
    • 38

      DatabaseImpl::renameCollection uses the onCreateCollection UUID catalog observer, which does not atomically unregister and re-register the UUID of the collection being renamed.

      There is a race condition reading while the UUID is not registered to any collection. The recent addition of replaceUUIDCatalogEntry, which atomically swaps the UUIDs, should be used instead.

      The other problem of rename using the createCollection UUID catalog observer is tracked by SERVER-35319

            Assignee:
            ben.judd Ben Judd
            Reporter:
            louis.williams@mongodb.com Louis Williams
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: