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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.4.10, 3.5.11
    • Component/s: None
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v3.4
    • Sprint:
      Storage 2017-07-31

      Description

      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.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: