setFeatureCompatibilityVersion can race with createCollection such that FCV 3.6 is set and some collections do not have UUIDs

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Critical - P2
    • 3.6.3, 3.7.2
    • Affects Version/s: 3.6.0, 3.7.1
    • Component/s: Storage
    • Fully Compatible
    • v3.6
    • Storage 2018-01-29
    • 0
    • None
    • 0
    • None
    • None
    • None
    • None
    • None
    • None

      Create collection takes a database exclusive lock and then checks the FCV to determine whether to create a collection with a UUID or not. The setFeatureCompatibilityVersion command, however, sets the FCV to upgrading without taking any locks. Therefore, createCollection could get as far as checking the FCV, not seeing upgradingTo36 or fullyUpgradedTo36, then the setFeatureCompatibilityVersion can assign all the existing collections to have UUIDs, and finally the createCollection finishes without assigning a UUID to the new collection.

            Assignee:
            Dianna Hohensee (Inactive)
            Reporter:
            Dianna Hohensee (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: