Support 9.0+ extension API error codes in upgrade/downgrade test

XMLWordPrintableJSON

    • Query Integration
    • Fully Compatible
    • 200
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Update extension_upgrade_downgrade_utils.js to handle error code 10918500 (featureFlagExtensionsAPI enabled) alongside 40324 for mixed-version test compatibility.

       In 9.0+, featureFlagExtensionsAPI is enabled by default, so the stub parser
      // throws 10918500 ("extension is not available") when the extension is not loaded.
      // On backports, it throws 40324 ("unrecognized stage").
      const fooStageUnrecognizedErrCodes = [40324, 10918500];
      
      ...
      // Either outcome is acceptable in this mixed-version state.
          assert.commandWorkedOrFailedWithCode(
              db.createView(viewName, collName, [{$testFoo: {}}]),
              fooStageUnrecognizedErrCodes);
      

            Assignee:
            Aditya Deshpande
            Reporter:
            Aditya Deshpande
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: