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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0.1, 4.1.1
    • Component/s: Catalog
    • Labels:
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v4.0
    • Sprint:
      Storage NYC 2018-07-02
    • Linked BF Score:
      38

      Description

      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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: