Add testing that explain commands send databaseVersion

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.3.1
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Fully Compatible
    • Sharding 2019-09-23
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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}
       }
       },
      

            Assignee:
            Cheahuychou Mao
            Reporter:
            Esha Maharishi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: