[SERVER-42570] Add testing that explain commands send databaseVersion Created: 31/Jul/19  Updated: 29/Oct/23  Resolved: 14/Sep/19

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 4.3.1

Type: Task Priority: Major - P3
Reporter: Esha Maharishi (Inactive) Assignee: Cheahuychou Mao
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Sharding 2019-09-23
Participants:

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



 Comments   
Comment by Githook User [ 14/Sep/19 ]

Author:

{'name': 'Chou Mao', 'username': 'cheahuychou', 'email': 'chou.mao@10gen.com'}

Message: SERVER-42570 Add testing that explain commands send databaseVersion
Branch: master
https://github.com/mongodb/mongo/commit/1b10bca95c62ade0035a4312b9a264ff5fd759de

Generated at Thu Feb 08 05:00:50 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.