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

Ensure that commands are only sent with a valid <DBV, SV> combination

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing

      There are only three valid combinations for versioning a command with the shard version and database version (<DBV, SV>):

      • <dbVersion, UNSHARDED> → Targets an unsharded collection located in the database's primary shard.
      • <dbVersion, boost::none> → Targets the database's primary shard.
      • <boost::none, shardVersion> → Targets a sharded/tracked collection.

      Any other combinations are incorrect and may introduce bugs in the future.

      The goal of this ticket is to ensure that no code sends a command versioned with an invalid combination of DBV and SV.

            Assignee:
            Unassigned Unassigned
            Reporter:
            pol.pinol@mongodb.com Pol Pinol
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: