diff options
Diffstat (limited to 'jstests')
-rw-r--r-- | jstests/core/crud_ops_do_not_throw_locktimeout.js | 4 | ||||
-rw-r--r-- | jstests/core/dbref3.js | 3 | ||||
-rw-r--r-- | jstests/core/explain_shell_helpers.js | 15 | ||||
-rw-r--r-- | jstests/core/txns/create_existing_indexes.js | 5 | ||||
-rw-r--r-- | jstests/core/views/views_aggregation.js | 12 | ||||
-rw-r--r-- | jstests/core/views/views_validation.js | 5 | ||||
-rw-r--r-- | jstests/core/wildcard_index_covered_queries.js | 7 |
7 files changed, 42 insertions, 9 deletions
diff --git a/jstests/core/crud_ops_do_not_throw_locktimeout.js b/jstests/core/crud_ops_do_not_throw_locktimeout.js index 7ecd8a778b7..e8c3a447cb1 100644 --- a/jstests/core/crud_ops_do_not_throw_locktimeout.js +++ b/jstests/core/crud_ops_do_not_throw_locktimeout.js @@ -3,7 +3,9 @@ * * @tags: [assumes_against_mongod_not_mongos, * assumes_read_concern_unchanged, - * assumes_write_concern_unchanged] + * assumes_write_concern_unchanged, + * # This test requires failpoint behavior not available in v4.2. + * requires_fcv_44] */ (function() { "use strict"; diff --git a/jstests/core/dbref3.js b/jstests/core/dbref3.js index 6a91a56da2a..c98e22ea36b 100644 --- a/jstests/core/dbref3.js +++ b/jstests/core/dbref3.js @@ -1,6 +1,9 @@ // Make sure we only make a DBRef object for objects where the first field is a string named $ref // and the second field is $id with any type. Only the first two fields matter for deciding if it // is a DBRef. See http://docs.mongodb.org/manual/reference/database-references/#dbrefs. +// +// It is not until mongod v4.4 that we support $-prefixed field names in $project stages. +// @tags: [requires_fcv_44] var t = db.dbref3; diff --git a/jstests/core/explain_shell_helpers.js b/jstests/core/explain_shell_helpers.js index d0ebe8ef529..d753dabdd23 100644 --- a/jstests/core/explain_shell_helpers.js +++ b/jstests/core/explain_shell_helpers.js @@ -1,6 +1,15 @@ -// Cannot implicitly shard accessed collections because the explain output from a mongod when run -// against a sharded collection is wrapped in a "shards" object with keys for each shard. -// @tags: [assumes_unsharded_collection, does_not_support_stepdowns, requires_fastcount] +/** + * Cannot implicitly shard accessed collections because the explain output from a mongod when run + * against a sharded collection is wrapped in a "shards" object with keys for each shard. + * + * @tags: [assumes_unsharded_collection, + * does_not_support_stepdowns, + * requires_fastcount, + * # Projection push down works differently between 4.2 and 4.4. explain() provides a + * # different output between the two versions. This test expects only the 4.4 version + * # output. + * requires_fcv_44] + */ // Tests for the .explain() shell helper, which provides syntactic sugar for the explain command. diff --git a/jstests/core/txns/create_existing_indexes.js b/jstests/core/txns/create_existing_indexes.js index a2e042142b6..5ec5dad43fe 100644 --- a/jstests/core/txns/create_existing_indexes.js +++ b/jstests/core/txns/create_existing_indexes.js @@ -1,7 +1,10 @@ /* Tests that attempts to create indexes that already exist as of the createIndexes call are * permitted inside multi-document transactions. Also test that attempts to create new * indexes on existing collections are not permitted inside multi-document transactions. - * @tags: [uses_transactions] + * + * @tags: [uses_transactions, + * # Creating indexes inside multi-document transactions is supported only in v4.4 onwards. + * requires_fcv_44] */ (function() { "use strict"; diff --git a/jstests/core/views/views_aggregation.js b/jstests/core/views/views_aggregation.js index b15c0f0094b..4feac4f7c57 100644 --- a/jstests/core/views/views_aggregation.js +++ b/jstests/core/views/views_aggregation.js @@ -1,7 +1,15 @@ /** * Tests aggregation on views for proper pipeline concatenation and semantics. - * @tags: [requires_find_command, does_not_support_stepdowns, requires_getmore, - * requires_non_retryable_commands] + * + * The conditions under which sorts are pushed down were changed between 4.2 and 4.4. This test + * expects the 4.4 version output of explain(). + * @tags: [requires_find_command, + * does_not_support_stepdowns, + * requires_getmore, + * requires_non_retryable_commands, + * # Requires FCV 4.4 because the test checks explain() output, and in 4.4 the conditions + * # under which sorts are pushed down were changed. + * requires_fcv_44] */ (function() { "use strict"; diff --git a/jstests/core/views/views_validation.js b/jstests/core/views/views_validation.js index 70a87a1fa1e..c224c5cd084 100644 --- a/jstests/core/views/views_validation.js +++ b/jstests/core/views/views_validation.js @@ -1,4 +1,7 @@ -// @tags: [requires_non_retryable_commands] +// @tags: [requires_non_retryable_commands, +// # This test attempts to call createCollection on a namespace with '$' which is not +// # supported until v4.4. +// requires_fcv_44] (function() { "use strict"; diff --git a/jstests/core/wildcard_index_covered_queries.js b/jstests/core/wildcard_index_covered_queries.js index 233bb70d953..366109a2c9a 100644 --- a/jstests/core/wildcard_index_covered_queries.js +++ b/jstests/core/wildcard_index_covered_queries.js @@ -5,7 +5,12 @@ * covered unless they include the shard key. Does not support stepdowns because the test issues * getMores, which the stepdown/kill_primary passthroughs will reject. * - * @tags: [assumes_unsharded_collection, does_not_support_stepdowns] + * @tags: [assumes_unsharded_collection, + * does_not_support_stepdowns, + * # This test attempts to project a $-prefixed field name ("$_path") which was allowed in + * # 4.2 but banned in 4.4. This test checks that the aforementioned case will throw an + * # error. + * requires_fcv_44] */ (function() { "use strict"; |