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

Data race on namespace stored in RecordStore during rename

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • ALL
    • Execution Team 2023-04-17
    • 1

      Rename operations normally use copy-on-write as the concurrency control on Collection instances. However, there's a separate namespace variable stored in the RecordStore that is shared among all Collection instances.

      As reads do not take Collection locks we may read this variable concurrently with a new value being written even as the rename operation holds a MODE_X lock on the collection.

            Assignee:
            henrik.edin@mongodb.com Henrik Edin
            Reporter:
            henrik.edin@mongodb.com Henrik Edin
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: