SERVER-31194 Add jscore tags for retryable_writes_jscore_stepdown_passthrough.yml suite

The actual suite will come in a follow-up commit.
This commit is contained in:
Jack Mulrow 2017-11-28 10:10:44 -05:00
parent 332ae576ef
commit 00d92ece19
325 changed files with 537 additions and 91 deletions

View File

@ -1,6 +1,6 @@
// Cannot implicitly shard accessed collections because of collection existing when none
// expected.
// @tags: [assumes_no_implicit_collection_creation_after_drop]
// @tags: [assumes_no_implicit_collection_creation_after_drop, does_not_support_stepdowns]
// Confirms correct behavior for hinted aggregation execution. This includes tests for scenarios
// where agg execution differs from query. It also includes confirmation that hint works for find

View File

@ -1,3 +1,5 @@
// @tags: [requires_getmore]
// this is a simple test to make sure that batchSize gets propagated to the cursors returned
// from the aggregate sell helper

View File

@ -1,3 +1,5 @@
// @tags: [requires_non_retryable_writes]
// Check that $all matching null is consistent with $in - SERVER-3820
t = db.jstests_all3;

View File

@ -1,3 +1,5 @@
// @tags: [does_not_support_stepdowns]
/**
* Tests for the db object enhancement
*/

View File

@ -1,3 +1,5 @@
// @tags: [requires_non_retryable_commands]
(function() {
"use strict";

View File

@ -1,3 +1,5 @@
// @tags: [requires_non_retryable_commands]
// Test applyops upsert flag SERVER-7452
var t = db.apply_ops2;

View File

@ -1,3 +1,5 @@
// @tags: [requires_non_retryable_commands]
// SERVER-23326: Make applyOps atomic for CRUD operations
(function() {
'use strict';

View File

@ -1,3 +1,5 @@
// @tags: [requires_non_retryable_commands]
(function() {
"use strict";
var t = db.apply_ops_dups;

View File

@ -1,6 +1,6 @@
// Cannot implicitly shard accessed collections because of collection existing when none
// expected.
// @tags: [assumes_no_implicit_collection_creation_after_drop]
// @tags: [assumes_no_implicit_collection_creation_after_drop, requires_non_retryable_commands]
// Tests creation of indexes using applyOps for collections with a non-simple default collation.
// Indexes created through applyOps should be built exactly according to their index spec, without

View File

@ -1,3 +1,4 @@
// @tags: [requires_non_retryable_writes]
t = db.jstests_array_match2;
t.drop();

View File

@ -1,3 +1,5 @@
// @tags: [requires_non_retryable_writes]
// Test query empty array SERVER-2258
t = db.jstests_arrayfind4;

View File

@ -1,3 +1,5 @@
// @tags: [requires_non_retryable_commands]
var mydb = db.getSiblingDB('auth1_db');
mydb.dropAllUsers();

View File

@ -1,3 +1,5 @@
// @tags: [requires_non_retryable_commands]
a = db.getSisterDB("copydb2-test-a");
b = db.getSisterDB("copydb2-test-b");

View File

@ -1,3 +1,5 @@
// @tags: [does_not_support_stepdowns]
// Tests that using setParameter to update the parameter 'automationServiceDescriptor' causes a
// field with that name to be echoed back in isMaster. See SERVER-18399 for more details.

View File

@ -1,3 +1,4 @@
// @tags: [does_not_support_stepdowns]
t = db.getCollection("basic1");
t.drop();

View File

@ -1,3 +1,4 @@
// @tags: [requires_non_retryable_writes]
t = db.getCollection("basic2");
t.drop();

View File

@ -1,3 +1,5 @@
// @tags: [requires_getmore]
// Test subtleties of batchSize and limit.
var t = db.jstests_batch_size;

View File

@ -1,7 +1,7 @@
// Cannot implicitly shard accessed collections because of following errmsg: A single
// update/delete on a sharded collection must contain an exact match on _id or contain the shard
// key.
// @tags: [assumes_unsharded_collection]
// @tags: [assumes_unsharded_collection, requires_non_retryable_writes]
// Tests that the update and delete batch write operations account for the size of the collation
// specification in the write operation document.

View File

@ -1,7 +1,7 @@
// Cannot implicitly shard accessed collections because of following errmsg: A single
// update/delete on a sharded collection must contain an exact match on _id or contain the shard
// key.
// @tags: [assumes_unsharded_collection]
// @tags: [assumes_unsharded_collection, requires_non_retryable_writes]
//
// Ensures that mongod respects the batch write protocols for delete

View File

@ -1,10 +1,7 @@
// Cannot implicitly shard accessed collections because of following errmsg: A single
// update/delete on a sharded collection must contain an exact match on _id or contain the shard
// key.
// MMap doesn't implement RecordStore::oplogStartHack so it uses the OplogStart stage instead when
// performing ts queries on the oplog during retry. This is considerable slower since it will
// have to perform table scans within an extent.
// @tags: [assumes_unsharded_collection, skip_in_retryable_writes_mmapv1_passthrough]
// @tags: [assumes_unsharded_collection, requires_non_retryable_writes]
//
// Ensures that mongod respects the batch write protocols for updates

View File

@ -1,7 +1,7 @@
// Cannot implicitly shard accessed collections because of following errmsg: A single
// update/delete on a sharded collection must contain an exact match on _id or contain the shard
// key.
// @tags: [assumes_unsharded_collection]
// @tags: [assumes_unsharded_collection, requires_non_retryable_writes]
var collectionName = "bulk_api_ordered";
var coll = db.getCollection(collectionName);

View File

@ -1,7 +1,7 @@
// Cannot implicitly shard accessed collections because of following errmsg: A single
// update/delete on a sharded collection must contain an exact match on _id or contain the shard
// key.
// @tags: [assumes_unsharded_collection]
// @tags: [assumes_unsharded_collection, requires_non_retryable_writes]
var collectionName = "bulk_api_unordered";
var coll = db.getCollection(collectionName);

View File

@ -1,3 +1,5 @@
// @tags: [does_not_support_stepdowns, requires_non_retryable_commands]
/**
* Tests that various database commands respect the 'bypassDocumentValidation' flag:
*

View File

@ -1,3 +1,5 @@
// @tags: [requires_non_retryable_commands]
// Test NamespaceDetails::cappedTruncateAfter via "captrunc" command
(function() {
var coll = db.capped6;

View File

@ -1,3 +1,5 @@
// @tags: [requires_non_retryable_commands]
// test cloneCollectionAsCapped
source = db.capped_convertToCapped1;

View File

@ -1,3 +1,4 @@
// @tags: [requires_non_retryable_commands]
t = db.capped_empty;
t.drop();

View File

@ -1,3 +1,5 @@
// @tags: [requires_non_retryable_writes]
// -------------------------
// CHECKSHARDINGINDEX TEST UTILS
// -------------------------

View File

@ -1,3 +1,5 @@
// @tags: [requires_non_retryable_commands]
// Test that cleanupOrphaned cannot be run on stand alone mongod.
var res = db.adminCommand({cleanupOrphaned: 'unsharded.coll'});
assert(!res.ok, tojson(res));

View File

@ -1,3 +1,5 @@
// @tags: [requires_non_retryable_commands]
(function() {
"use strict";
// This test ensures that CloneCollectionAsCapped()ing a nonexistent collection will not

View File

@ -1,6 +1,7 @@
// Cannot implicitly shard accessed collections because of collection existing when none
// expected.
// @tags: [assumes_no_implicit_collection_creation_after_drop]
// @tags: [assumes_no_implicit_collection_creation_after_drop, does_not_support_stepdowns,
// requires_non_retryable_commands, requires_non_retryable_writes]
// Integration tests for the collation feature.
(function() {

View File

@ -1,3 +1,5 @@
// @tags: [requires_non_retryable_commands]
// Test that the collection created with the "convertToCapped" command inherits the default
// collation of the corresponding collection.
(function() {

View File

@ -1,3 +1,5 @@
// @tags: [does_not_support_stepdowns]
// Integration testing for the plan cache and index filter commands with collation.
(function() {
'use strict';

View File

@ -1,3 +1,5 @@
// @tags: [requires_non_retryable_commands]
// SERVER-15033 truncate on a regular collection
var t = db.getCollection('collection_truncate');

View File

@ -1,6 +1,6 @@
// Cannot implicitly shard accessed collections because of collection existing when none
// expected.
// @tags: [assumes_no_implicit_collection_creation_after_drop]
// @tags: [assumes_no_implicit_collection_creation_after_drop, requires_non_retryable_commands]
// Basic js tests for the collMod command.
// Test setting the usePowerOf2Sizes flag, and modifying TTL indexes.

View File

@ -1,6 +1,6 @@
// Cannot implicitly shard accessed collections because of collection existing when none
// expected.
// @tags: [assumes_no_implicit_collection_creation_after_drop]
// @tags: [assumes_no_implicit_collection_creation_after_drop, requires_non_retryable_commands]
// This is a regression test for SERVER-21545.
//

View File

@ -1,3 +1,5 @@
// @tags: [requires_non_retryable_commands]
/**
* SERVER-32125 Check that applyOps commands with collMod without UUID don't strip it
*/

View File

@ -1,7 +1,8 @@
// Cannot implicitly shard accessed collections because the error response from the shard about
// using the empty string as the out collection name is converted to an error and no longer retains
// the "code" property.
// @tags: [assumes_unsharded_collection]
// @tags: [assumes_unsharded_collection, does_not_support_stepdowns, requires_getmore,
// requires_non_retryable_commands]
// This file tests that commands namespace parsing rejects embedded null bytes.
// Note that for each command, a properly formatted command object must be passed to the helper

View File

@ -1,3 +1,5 @@
// @tags: [does_not_support_stepdowns]
/**
* This file tests commands that do not support write concern. It passes both valid and invalid
* writeConcern fields to commands and expects the commands to fail with a writeConcernNotSupported

View File

@ -1,3 +1,5 @@
// @tags: [requires_non_retryable_commands]
// Tests the connectionStatus command
(function() {
"use strict";

View File

@ -1,3 +1,5 @@
// @tags: [does_not_support_stepdowns, requires_non_retryable_commands]
// Tests to see what validity checks are done for 10gen specific object construction
// Takes a list of constructors and returns a new list with an extra entry for each constructor with

View File

@ -1,3 +1,5 @@
// @tags: [requires_non_retryable_commands]
// This test ensures that ConvertToCapped()ing a nonexistent collection will not cause the server to
// abort (SERVER-13750)

View File

@ -1,3 +1,5 @@
// @tags: [requires_non_retryable_commands]
/**
* This test creates a collection with autoIndexId: false. It then copies the database and expects
* the new collection to not have an _id index either.

View File

@ -1,3 +1,5 @@
// @tags: [requires_non_retryable_commands]
// Basic tests for the copydb command. These only test copying from the same server; these do not
// test the ability of copydb to pull a database from another server (with or without auth).

View File

@ -1,3 +1,5 @@
// @tags: [does_not_support_stepdowns]
// Test that interrupting a count returns an error code.
t = db.count10;

View File

@ -1,3 +1,5 @@
// @tags: [requires_getmore]
t = db.count2;
t.drop();

View File

@ -1,3 +1,5 @@
// @tags: [requires_non_retryable_writes]
// Check normal count matching and deduping.
t = db.jstests_count7;

View File

@ -1,3 +1,5 @@
// @tags: [does_not_support_stepdowns]
// Test that the plan summary string appears in db.currentOp() for
// count operations. SERVER-14064.

View File

@ -1,3 +1,5 @@
// @tags: [requires_getmore]
// Test covered index projection with $or clause, specifically in getMore
// SERVER-4980

View File

@ -1,3 +1,5 @@
// @tags: [does_not_support_stepdowns]
// Tests the use of a match predicate with the currentOp command.
(function() {
// Test a predicate that matches the currentOp operation we are running.

View File

@ -1,3 +1,4 @@
// @tags: [requires_getmore]
t = db.cursor1;
t.drop();

View File

@ -1,3 +1,5 @@
// @tags: [requires_getmore, requires_non_retryable_writes]
t = db.cursora;
function run(n, atomic) {

View File

@ -1,3 +1,4 @@
// @tags: [requires_getmore, requires_non_retryable_writes]
a = db.getSisterDB("delxa");
b = db.getSisterDB("delxb");

View File

@ -1,3 +1,5 @@
// @tags: [requires_non_retryable_writes]
// Yield and delete test case for query optimizer cursor. SERVER-4401
t = db.jstests_distinct3;

View File

@ -1,6 +1,7 @@
// Cannot implicitly shard accessed collections because of collection existing when none
// expected.
// @tags: [assumes_no_implicit_collection_creation_after_drop]
// @tags: [assumes_no_implicit_collection_creation_after_drop, requires_non_retryable_commands,
// requires_non_retryable_writes]
// Test basic inserts and updates with document validation.
(function() {

View File

@ -1,6 +1,6 @@
// Cannot implicitly shard accessed collections because of collection existing when none
// expected.
// @tags: [assumes_no_implicit_collection_creation_after_drop]
// @tags: [assumes_no_implicit_collection_creation_after_drop, requires_non_retryable_commands]
// Verify invalid validator statements won't work and that we
// can't create validated collections on restricted databases.

View File

@ -1,6 +1,6 @@
// Cannot implicitly shard accessed collections because of collection existing when none
// expected.
// @tags: [assumes_no_implicit_collection_creation_after_drop]
// @tags: [assumes_no_implicit_collection_creation_after_drop, requires_non_retryable_commands]
(function() {
"use strict";

View File

@ -1,3 +1,5 @@
// @tags: [requires_getmore]
t = db.jstests_drop3;
sub = t.sub;

View File

@ -1,3 +1,5 @@
// @tags: [does_not_support_stepdowns]
// test dropping a db with simultaneous commits
m = db.getMongo();

View File

@ -1,3 +1,5 @@
// @tags: [requires_getmore]
// Tests for $elemMatch projections and $ positional operator projection.
(function() {
"use strict";

View File

@ -1,7 +1,7 @@
// Cannot implicitly shard accessed collections because of following errmsg: A single
// update/delete on a sharded collection must contain an exact match on _id or contain the shard
// key.
// @tags: [assumes_unsharded_collection]
// @tags: [assumes_unsharded_collection, requires_getmore]
// SERVER-17011 Tests whether queries which specify sort and batch size can generate results out of
// order due to the ntoreturn hack. The EnsureSortedStage should solve this problem.

View File

@ -1,3 +1,5 @@
// @tags: [requires_non_retryable_commands]
// Test that client gets stack trace on failed invoke
f = db.jstests_error2;

View File

@ -1,3 +1,5 @@
// @tags: [requires_non_retryable_commands]
assert.writeOK(db.evalprep.insert({}), "db must exist for eval to succeed");
db.evalprep.drop();
assert.eq(17,

View File

@ -1,6 +1,6 @@
// Cannot implicitly shard accessed collections because unsupported use of sharded collection
// from db.eval.
// @tags: [assumes_unsharded_collection]
// @tags: [assumes_unsharded_collection, requires_non_retryable_commands]
t = db.eval1;
t.drop();

View File

@ -1,6 +1,6 @@
// Cannot implicitly shard accessed collections because unsupported use of sharded collection
// from db.eval.
// @tags: [assumes_unsharded_collection]
// @tags: [assumes_unsharded_collection, requires_non_retryable_commands]
t = db.eval3;
t.drop();

View File

@ -1,6 +1,7 @@
// Cannot implicitly shard accessed collections because unsupported use of sharded collection
// from db.eval.
// @tags: [assumes_unsharded_collection]
// @tags: [assumes_unsharded_collection, requires_non_retryable_commands,
// requires_non_retryable_writes]
t = db.eval4;
t.drop();

View File

@ -1,6 +1,6 @@
// Cannot implicitly shard accessed collections because unsupported use of sharded collection
// from db.eval.
// @tags: [assumes_unsharded_collection]
// @tags: [assumes_unsharded_collection, requires_non_retryable_commands]
t = db.eval5;
t.drop();

View File

@ -1,6 +1,6 @@
// Cannot implicitly shard accessed collections because unsupported use of sharded collection
// from db.eval.
// @tags: [assumes_unsharded_collection]
// @tags: [assumes_unsharded_collection, requires_non_retryable_commands]
t = db.eval6;
t.drop();

View File

@ -1,3 +1,5 @@
// @tags: [requires_non_retryable_commands]
assert.writeOK(db.evalprep.insert({}), "db must exist for eval to succeed");
db.evalprep.drop();

View File

@ -1,6 +1,6 @@
// Cannot implicitly shard accessed collections because unsupported use of sharded collection
// from db.eval.
// @tags: [assumes_unsharded_collection]
// @tags: [assumes_unsharded_collection, requires_non_retryable_commands]
assert.writeOK(db.evalprep.insert({}), "db must exist for eval to succeed");
db.evalprep.drop();

View File

@ -1,6 +1,7 @@
// Cannot implicitly shard accessed collections because of following errmsg: Cannot output to a
// non-sharded collection because sharded collection exists already.
// @tags: [assumes_unsharded_collection]
// @tags: [assumes_unsharded_collection, does_not_support_stepdowns,
// requires_non_retryable_commands]
// Test that the eval command can't be used to invoke the mapReduce command. SERVER-17889.
(function() {

View File

@ -1,6 +1,6 @@
// Cannot implicitly shard accessed collections because unsupported use of sharded collection
// from db.eval.
// @tags: [assumes_unsharded_collection]
// @tags: [assumes_unsharded_collection, requires_non_retryable_commands]
t = db.eval_nolock;
t.drop();

View File

@ -1,6 +1,6 @@
// Cannot implicitly shard accessed collections because unsupported use of sharded collection
// from db.eval.
// @tags: [assumes_unsharded_collection]
// @tags: [assumes_unsharded_collection, requires_non_retryable_commands]
t = db.evala;
t.drop();

View File

@ -1,3 +1,5 @@
// @tags: [does_not_support_stepdowns, requires_non_retryable_commands]
// Check the return value of a db.eval function running a database query, and ensure the function's
// contents are logged in the profile log.

View File

@ -1,6 +1,7 @@
// Cannot implicitly shard accessed collections because unsupported use of sharded collection
// from db.eval.
// @tags: [assumes_unsharded_collection]
// @tags: [assumes_unsharded_collection, does_not_support_stepdowns,
// requires_non_retryable_commands]
t = db.jstests_evald;
t.drop();

View File

@ -1,6 +1,6 @@
// Cannot implicitly shard accessed collections because unsupported use of sharded collection
// from db.eval.
// @tags: [assumes_unsharded_collection]
// @tags: [assumes_unsharded_collection, requires_non_retryable_commands]
t = db.jstests_evale;
t.drop();

View File

@ -1,6 +1,6 @@
// Cannot implicitly shard accessed collections because unsupported use of sharded collection
// from db.eval.
// @tags: [assumes_unsharded_collection]
// @tags: [assumes_unsharded_collection, requires_non_retryable_commands]
// SERVER-17499: Test behavior of getMore on aggregation cursor under eval command.
db.evalg.drop();

View File

@ -1,3 +1,5 @@
// @tags: [requires_non_retryable_commands]
/**
* Test that db.eval does not support auth.
*/

View File

@ -1,3 +1,5 @@
// @tags: [requires_non_retryable_commands]
(function() {
"use strict";

View File

@ -1,3 +1,5 @@
// @tags: [requires_getmore]
(function() {
'use strict';

View File

@ -1,3 +1,4 @@
// @tags: [requires_non_retryable_writes]
// Test that non boolean value types are allowed with $explain spec. SERVER-2322

View File

@ -1,3 +1,5 @@
// @tags: [requires_non_retryable_writes]
// Test $exists with array element field names SERVER-2897
t = db.jstests_exists8;

View File

@ -1,3 +1,5 @@
// @tags: [requires_non_retryable_writes]
// Basic test which checks the number of documents returned, keys examined, and documents
// examined as reported by explain.

View File

@ -1,6 +1,7 @@
// Cannot implicitly shard accessed collections because unsupported use of sharded collection
// for output collection of aggregation pipeline.
// @tags: [assumes_unsharded_collection]
// @tags: [assumes_unsharded_collection, does_not_support_stepdowns,
// requires_non_retryable_commands]
/**
* Tests related to the aggregate commands behavior with writeConcern and writeConcern + explain.

View File

@ -1,3 +1,5 @@
// @tags: [requires_non_retryable_writes]
// Tests for explaining the delete command.
var collName = "jstests_explain_delete";

View File

@ -1,3 +1,5 @@
// @tags: [requires_getmore]
// Test that even when the execution of a query fails, explain reports query
// planner information.

View File

@ -1,6 +1,6 @@
// 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]
// @tags: [assumes_unsharded_collection, does_not_support_stepdowns]
// Tests for the .explain() shell helper, which provides syntactic sugar for the explain command.

View File

@ -1,3 +1,5 @@
// @tags: [does_not_support_stepdowns, requires_getmore, requires_non_retryable_writes]
// Tests for $expr in the CRUD commands.
(function() {
"use strict";

View File

@ -1,3 +1,5 @@
// @tags: [requires_getmore]
// Test that the MaxBytesToReturnToClientAtOnce limit is enforced.
t = db.jstests_find9;

View File

@ -1,7 +1,7 @@
// Cannot implicitly shard accessed collections because of following errmsg: A single
// update/delete on a sharded collection must contain an exact match on _id or contain the shard
// key.
// @tags: [assumes_unsharded_collection]
// @tags: [assumes_unsharded_collection, requires_non_retryable_writes]
// Test passing update:{} to findAndModify. SERVER-13883.

View File

@ -1,3 +1,5 @@
// @tags: [requires_getmore]
// Ensure that the find and getMore commands can handle documents nearing the 16 MB size limit for
// user-stored BSON documents.
(function() {

View File

@ -1,3 +1,5 @@
// @tags: [requires_getmore]
// Tests that explicitly invoke the find and getMore commands.
(function() {
'use strict';

View File

@ -1,3 +1,5 @@
// @tags: [requires_getmore]
// Tests where the QueryOptimizerCursor enters takeover mode during a query rather than a get more.
t = db.jstests_finda;

View File

@ -1,6 +1,6 @@
// Cannot implicitly shard accessed collections because renameCollection command not supported
// on sharded collections.
// @tags: [assumes_unsharded_collection]
// @tags: [assumes_unsharded_collection, requires_non_retryable_commands]
// Test that collections with text indexes can be renamed. SERVER-14027.

View File

@ -1,3 +1,5 @@
// @tags: [requires_non_retryable_writes]
// Test $text query operator.
var t = db.getSiblingDB("test").getCollection("fts_querylang");

View File

@ -1,3 +1,5 @@
// @tags: [does_not_support_stepdowns]
/** Demonstrate that mapReduce can accept functions represented by strings.
* Some drivers do not have a type which represents a Javascript function. These languages represent
* the arguments to mapReduce as strings.

View File

@ -1,3 +1,5 @@
// @tags: [requires_non_retryable_writes]
//
// Test of sample big polygon functionality
//

View File

@ -1,3 +1,5 @@
// @tags: [requires_non_retryable_writes]
//
// Big Polygon related tests
// - Tests the capability for a geo query with a big polygon object (strictCRS)

View File

@ -1,3 +1,5 @@
// @tags: [does_not_support_stepdowns, requires_non_retryable_writes]
//
// Big Polygon edge cases
//

View File

@ -1,3 +1,4 @@
// @tags: [requires_getmore]
t = db.geo_box1;
t.drop();

View File

@ -1,3 +1,5 @@
// @tags: [requires_getmore]
// SERVER-7343: allow $within without a geo index.
t = db.geo_box1_noindex;
t.drop();

Some files were not shown because too many files have changed in this diff Show More