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

Review the use executeCommandAgainstDatabasePrimary helper for DDL commands

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • Fully Compatible
    • CAR Team 2024-09-30
    • 2

      The executeCommandAgainstDatabasePrimary helper attaches the UNSHARDED ShardVersion when sending a request to the database primary, which is incorrect when the collection is tracked and is anyway unnecessary for DDL commands. All usages of that helper for DDL commands must be replaced by executeDDLCoordinatorCommandAgainstDatabasePrimary that only attaches the db version.

            Assignee:
            robert.sander@mongodb.com Robert Sander
            Reporter:
            robert.sander@mongodb.com Robert Sander
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: