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

FeatureCompatibilityVersion::onInsertOrUpdate should only write to the server parameter on commit

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.4.10, 3.5.11
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v3.4
    • Storage 2017-07-31

      Currently, onInsertOrUpdate does not wait for the write to the feature compatibility version document to be committed before writing to the feature compatibility version server parameter. This is an issue if, for example, we are setting feature compatibility version from 3.2 to 3.4 and just after the server parameter is updated but before the document is written, someone else attempts to insert a decimal value into a document, sees that the server parameter is 3.4, and gets the insert committed prior to the write to the feature compatibility version document being committed.

            Assignee:
            maria.vankeulen@mongodb.com Maria van Keulen
            Reporter:
            maria.vankeulen@mongodb.com Maria van Keulen
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: