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

Add testing that explain commands send databaseVersion

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.3.1
    • None
    • Sharding
    • None
    • Fully Compatible
    • Sharding 2019-09-23

    Description

      We could add this testing to an existing jstest, database_and_shard_versioning_all_commands.js.

      The test currently loops over all commands, sends the command through mongos, and checks that mongos attached a databaseVersion.

      We could split the test case description for each command into "run" and "explain", e.g.:

       aggregate: {
       sendsDbVersion: true,
       sendsShardVersion: true,
       command: {aggregate: collName, pipeline: [{$match: {x: 1}}], cursor: {batchSize: 10}},
       },
      

      becomes

       aggregate: {
       run: {
       sendsDbVersion: true,
       sendsShardVersion: true,
       command: {aggregate: collName, pipeline: [{$match: {x: 1}}], cursor: {batchSize: 10}},
       },
       explain: {
       sendsDbVersion: <true|false>
       sendsShardVersion: <true|false>
       command: {aggregate: collName, pipeline: [{$match: {x: 1}}], cursor: {batchSize: 10}, explain: true}
       }
       },
      

      Attachments

        Activity

          People

            cheahuychou.mao@mongodb.com Cheahuychou Mao
            esha.maharishi@mongodb.com Esha Maharishi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: