Loading the same extension twice should be rejected

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Query Integration
    • Fully Compatible
    • None
    • 3
    • TBD
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The relevant file is mongo/db/extension/host/load_extension.cpp where we take a list of extensionPaths and dynamically load each extension one-by-one.

      Currently, we would allow you to load the same extension multiple times. We should reject it (fail startup with an error logline) if we attempt to do so.

      We should not worry about trying to load the same .so file using different pathnames since we're modifying the parameter in SPM-4363 to just take extension names (see that design doc). In other words, this could be done by just doing a string compare of the path name.

      You could add a unit test to load_extension_test.cpp, and you could add this test case to extensions_parameter.js

              Assignee:
              Finley Lau
              Reporter:
              Will Buerger
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: