diff options
Diffstat (limited to 'jstests/sharding/libs')
-rw-r--r-- | jstests/sharding/libs/last_stable_mongos_commands.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/jstests/sharding/libs/last_stable_mongos_commands.js b/jstests/sharding/libs/last_stable_mongos_commands.js new file mode 100644 index 00000000000..43a1da0acfa --- /dev/null +++ b/jstests/sharding/libs/last_stable_mongos_commands.js @@ -0,0 +1,16 @@ +// These commands were removed from mongos 4.2, but will still appear in the listCommands output +// of a 4.0 mongos. A last-stable mongos will be unable to run a command on a latest version shard +// that no longer supports that command. To increase test coverage and allow us to run on same- and +// mixed-version suites, we allow these commands to have a test defined without always existing on +// the servers being used. +const commandsRemovedFromMongosIn42 = [ + 'copydb', + 'eval', + 'geoNear', + 'group', + 'reIndex', +]; +// These commands were added in mongos 4.2, so will not appear in the listCommands output of a 4.0 +// mongos. We will allow these commands to have a test defined without always existing on the mongos +// being used. +const commandsAddedToMongosIn42 = ['abortTransaction', 'commitTransaction']; |