[v4.4] Support running checkFCV() shell helper with mongos connection

XMLWordPrintableJSON

    • Fully Compatible
    • v4.2
    • Sharding 2021-06-14
    • 45
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      The changes from c0142cd as part of SERVER-56961 made it so the FuzzerRestoreClusterSettings hook first restores the feature compatibility version to latestFCV. When a previous upgrade or downgrade was interrupted, the setFeatureCompatibilityVersion command is run to finish the FCV upgrade or downgrade and then the featureCompatibilityVersion server parameter and document is read to affirm the FCV upgrade or downgrade completed successfully. mongos doesn't report a featureCompatibilityVersion server parameter and so the withFCV() function throws in this case.

      https://github.com/mongodb/mongo/blob/e92664940640287874bf6d08940df26fee7bc2b8/jstests/libs/with_fcv.js#L74

            Assignee:
            Max Hirschhorn
            Reporter:
            Max Hirschhorn
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: