summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack Mulrow <jack.mulrow@mongodb.com>2018-11-07 17:24:11 -0500
committerJack Mulrow <jack.mulrow@mongodb.com>2018-11-30 09:56:29 -0500
commit064535356bfbeb9afe310944df4344574c9a6e8d (patch)
tree92e2424a47d2b49495a6734592e4808102703f71
parentc900b4bd14011b5e95cff597ad802a2eaa45666b (diff)
downloadmongo-064535356bfbeb9afe310944df4344574c9a6e8d.tar.gz
SERVER-37879 Run sharded_causally_consistent_jscore_txns_passthrough against sharded collections
-rw-r--r--buildscripts/resmokeconfig/suites/sharded_collections_causally_consistent_jscore_txns_passthrough.yml83
-rw-r--r--etc/evergreen.yml42
2 files changed, 125 insertions, 0 deletions
diff --git a/buildscripts/resmokeconfig/suites/sharded_collections_causally_consistent_jscore_txns_passthrough.yml b/buildscripts/resmokeconfig/suites/sharded_collections_causally_consistent_jscore_txns_passthrough.yml
new file mode 100644
index 00000000000..be87a995380
--- /dev/null
+++ b/buildscripts/resmokeconfig/suites/sharded_collections_causally_consistent_jscore_txns_passthrough.yml
@@ -0,0 +1,83 @@
+test_kind: js_test
+selector:
+ roots:
+ - jstests/core/txns/**/*.js
+ exclude_files:
+ # Profile can only be run against the admin database on mongos.
+ - jstests/core/txns/transactions_profiling.js
+ - jstests/core/txns/transactions_profiling_with_drops.js
+
+ # No featureCompatibilityVersion parameter on mongos.
+ - jstests/core/txns/abort_transactions_on_FCV_downgrade.js
+
+ # Mongos doesn't upconvert from local or majority level readConcern to snapshot.
+ - jstests/core/txns/upconvert_read_concern.js
+
+ # Implicitly creates a database through a collection rename, which does not work in a sharded
+ # cluster.
+ - jstests/core/txns/transactions_block_ddl.js
+
+ # TODO SERVER-36124: maxTimeMS doesn't work for insert on mongos.
+ - jstests/core/txns/write_conflicts_with_non_txns.js
+
+ # TODO SERVER-36120: No doTxn command on mongos.
+ - jstests/core/txns/do_txn_atomicity.js
+ - jstests/core/txns/do_txn_basic.js
+
+ # TODO SERVER-36121: Set the transactionLifetimeLimitSeconds parameter, which is not on mongos.
+ - jstests/core/txns/abort_expired_transaction.js
+ - jstests/core/txns/abort_transaction_thread_does_not_block_on_locks.js
+ - jstests/core/txns/kill_op_on_txn_expiry.js
+
+ # Writes to the local database are not allowed through mongos.
+ # TODO SERVER-28756: Mongos CSRS write retry logic drops txnNumbers.
+ - jstests/core/txns/banned_txn_dbs.js
+
+ # Uses hangAfterCollectionInserts failpoint not available on mongos.
+ - jstests/core/txns/speculative_snapshot_includes_all_writes.js
+
+ # Cannot shard a capped collection.
+ - jstests/core/txns/ban_tailable_cursor.js
+
+ # View tests aren't expected to work when collections are implicitly sharded.
+ - jstests/core/txns/view_reads_in_transaction.js
+
+ # Does not use the transactions shell helpers so afterClusterTime read concern is incorrectly
+ # attached to statements in a transaction beyond the first one.
+ - jstests/core/txns/non_transactional_operations_on_session_with_transaction.js
+ exclude_with_any_tags:
+ - assumes_against_mongod_not_mongos
+ # Tests tagged with the following will fail because they assume collections are not sharded.
+ - assumes_no_implicit_collection_creation_after_drop
+ - assumes_no_implicit_index_creation
+ - assumes_unsharded_collection
+ - cannot_create_unique_index_when_using_hashed_shard_key
+ # Prepare is not a command on mongos.
+ - uses_prepare_transaction
+executor:
+ archive:
+ hooks:
+ - ValidateCollections
+ config:
+ shell_options:
+ eval: >-
+ var testingReplication = true;
+ load('jstests/libs/override_methods/implicitly_shard_accessed_collections.js');
+ readMode: commands
+ hooks:
+ # We don't execute dbHash or oplog consistency checks since there is only a single replica set
+ # node.
+ - class: ValidateCollections
+ - class: CleanEveryN
+ n: 20
+ fixture:
+ class: ShardedClusterFixture
+ mongos_options:
+ set_parameters:
+ enableTestCommands: 1
+ mongod_options:
+ set_parameters:
+ enableTestCommands: 1
+ numInitialSyncAttempts: 1
+ num_rs_nodes_per_shard: 2
+ num_shards: 2
diff --git a/etc/evergreen.yml b/etc/evergreen.yml
index d1a7815c8d4..60c361e1e28 100644
--- a/etc/evergreen.yml
+++ b/etc/evergreen.yml
@@ -5708,6 +5708,15 @@ tasks:
run_multiple_jobs: true
- <<: *task_template
+ name: sharded_collections_causally_consistent_jscore_txns_passthrough
+ commands:
+ - func: "do setup"
+ - func: "run tests"
+ vars:
+ resmoke_args: --suites=sharded_collections_causally_consistent_jscore_txns_passthrough --storageEngine=wiredTiger
+ run_multiple_jobs: true
+
+- <<: *task_template
name: replica_sets_jscore_passthrough
depends_on:
- name: jsCore
@@ -8641,6 +8650,7 @@ buildvariants:
- name: slow1
- name: serial_run
- name: sharded_causally_consistent_jscore_txns_passthrough
+ - name: sharded_collections_causally_consistent_jscore_txns_passthrough
- name: sharded_collections_jscore_passthrough
- name: sharded_jscore_txns
- name: sharded_jscore_txns_sharded_collections
@@ -8831,6 +8841,7 @@ buildvariants:
- name: session_jscore_passthrough
- name: sharded_causally_consistent_jscore_passthrough
- name: sharded_causally_consistent_jscore_txns_passthrough
+ - name: sharded_collections_causally_consistent_jscore_txns_passthrough
- name: sharded_collections_jscore_passthrough
- name: sharded_jscore_txns
- name: sharded_jscore_txns_sharded_collections
@@ -9065,6 +9076,7 @@ buildvariants:
- name: slow1
- name: serial_run
- name: sharded_causally_consistent_jscore_txns_passthrough
+ - name: sharded_collections_causally_consistent_jscore_txns_passthrough
- name: sharded_jscore_txns
- name: sharded_jscore_txns_sharded_collections
- name: sharding_jscore_passthrough
@@ -9161,6 +9173,7 @@ buildvariants:
- name: slow1
- name: serial_run
- name: sharded_causally_consistent_jscore_txns_passthrough
+ - name: sharded_collections_causally_consistent_jscore_txns_passthrough
- name: sharded_jscore_txns
- name: sharded_jscore_txns_sharded_collections
- name: sharding_jscore_passthrough
@@ -9429,6 +9442,7 @@ buildvariants:
- name: slow1
- name: serial_run
- name: sharded_causally_consistent_jscore_txns_passthrough
+ - name: sharded_collections_causally_consistent_jscore_txns_passthrough
- name: sharded_jscore_txns
- name: sharded_jscore_txns_sharded_collections
- name: sharding_jscore_passthrough
@@ -9520,6 +9534,7 @@ buildvariants:
- name: slow1
- name: serial_run
- name: sharded_causally_consistent_jscore_txns_passthrough
+ - name: sharded_collections_causally_consistent_jscore_txns_passthrough
- name: sharded_jscore_txns
- name: sharded_jscore_txns_sharded_collections
- name: sharding_jscore_passthrough
@@ -9652,6 +9667,7 @@ buildvariants:
- name: slow1
- name: serial_run
- name: sharded_causally_consistent_jscore_txns_passthrough
+ - name: sharded_collections_causally_consistent_jscore_txns_passthrough
- name: sharded_jscore_txns
- name: sharded_jscore_txns_sharded_collections
- name: sharding_jscore_passthrough
@@ -9754,6 +9770,7 @@ buildvariants:
- name: replica_sets_jscore_passthrough
- name: sasl
- name: sharded_causally_consistent_jscore_txns_passthrough
+ - name: sharded_collections_causally_consistent_jscore_txns_passthrough
- name: sharded_collections_jscore_passthrough
- name: sharded_jscore_txns
- name: sharded_jscore_txns_sharded_collections
@@ -9851,6 +9868,7 @@ buildvariants:
- name: slow1
- name: serial_run
- name: sharded_causally_consistent_jscore_txns_passthrough
+ - name: sharded_collections_causally_consistent_jscore_txns_passthrough
- name: sharded_collections_jscore_passthrough
- name: sharded_jscore_txns
- name: sharded_jscore_txns_sharded_collections
@@ -9953,6 +9971,7 @@ buildvariants:
- name: slow1
- name: serial_run
- name: sharded_causally_consistent_jscore_txns_passthrough
+ - name: sharded_collections_causally_consistent_jscore_txns_passthrough
- name: sharded_collections_jscore_passthrough
- name: sharded_jscore_txns
- name: sharded_jscore_txns_sharded_collections
@@ -10040,6 +10059,7 @@ buildvariants:
- name: slow1
- name: serial_run
- name: sharded_causally_consistent_jscore_txns_passthrough
+ - name: sharded_collections_causally_consistent_jscore_txns_passthrough
- name: sharded_collections_jscore_passthrough
- name: sharded_jscore_txns
- name: sharded_jscore_txns_sharded_collections
@@ -10146,6 +10166,7 @@ buildvariants:
- name: slow1
- name: serial_run
- name: sharded_causally_consistent_jscore_txns_passthrough
+ - name: sharded_collections_causally_consistent_jscore_txns_passthrough
- name: sharded_collections_jscore_passthrough
- name: sharded_jscore_txns
- name: sharded_jscore_txns_sharded_collections
@@ -10430,6 +10451,7 @@ buildvariants:
- name: replica_sets_jscore_passthrough
- name: sasl
- name: sharded_causally_consistent_jscore_txns_passthrough
+ - name: sharded_collections_causally_consistent_jscore_txns_passthrough
- name: sharded_jscore_txns
- name: sharded_jscore_txns_sharded_collections
- name: sharding_auth_0
@@ -10762,6 +10784,7 @@ buildvariants:
- name: replica_sets_jscore_passthrough
- name: sasl
- name: sharded_causally_consistent_jscore_txns_passthrough
+ - name: sharded_collections_causally_consistent_jscore_txns_passthrough
- name: sharded_jscore_txns
- name: sharded_jscore_txns_sharded_collections
- name: sharding_auth
@@ -10876,6 +10899,7 @@ buildvariants:
- name: replica_sets_jscore_passthrough
- name: serial_run
- name: sharded_causally_consistent_jscore_txns_passthrough
+ - name: sharded_collections_causally_consistent_jscore_txns_passthrough
- name: sharded_collections_jscore_passthrough
- name: sharded_jscore_txns
- name: sharded_jscore_txns_sharded_collections
@@ -11037,6 +11061,7 @@ buildvariants:
- name: serial_run
- name: session_jscore_passthrough
- name: sharded_causally_consistent_jscore_txns_passthrough
+ - name: sharded_collections_causally_consistent_jscore_txns_passthrough
- name: sharded_collections_jscore_passthrough
- name: sharded_jscore_txns
- name: sharded_jscore_txns_sharded_collections
@@ -11969,6 +11994,7 @@ buildvariants:
- name: sasl
- name: session_jscore_passthrough
- name: sharded_causally_consistent_jscore_txns_passthrough
+ - name: sharded_collections_causally_consistent_jscore_txns_passthrough
- name: sharded_collections_jscore_passthrough
- name: sharded_jscore_txns
- name: sharded_jscore_txns_sharded_collections
@@ -12994,6 +13020,7 @@ buildvariants:
- name: sasl
- name: session_jscore_passthrough
- name: sharded_causally_consistent_jscore_txns_passthrough
+ - name: sharded_collections_causally_consistent_jscore_txns_passthrough
- name: sharded_collections_jscore_passthrough
- name: sharded_jscore_txns
- name: sharded_jscore_txns_sharded_collections
@@ -13228,6 +13255,7 @@ buildvariants:
- name: slow1
- name: serial_run
- name: sharded_causally_consistent_jscore_txns_passthrough
+ - name: sharded_collections_causally_consistent_jscore_txns_passthrough
- name: sharded_jscore_txns
- name: sharded_jscore_txns_sharded_collections
- name: sharding_jscore_passthrough
@@ -13334,6 +13362,7 @@ buildvariants:
- name: replica_sets_auth
- name: replica_sets_jscore_passthrough
- name: sharded_causally_consistent_jscore_txns_passthrough
+ - name: sharded_collections_causally_consistent_jscore_txns_passthrough
- name: sharded_jscore_txns
- name: sharded_jscore_txns_sharded_collections
- name: sharding
@@ -13443,6 +13472,7 @@ buildvariants:
- name: replica_sets_jscore_passthrough
- name: sasl
- name: sharded_causally_consistent_jscore_txns_passthrough
+ - name: sharded_collections_causally_consistent_jscore_txns_passthrough
- name: sharded_collections_jscore_passthrough
- name: sharded_jscore_txns
- name: sharded_jscore_txns_sharded_collections
@@ -13561,6 +13591,7 @@ buildvariants:
- name: replica_sets_jscore_passthrough
- name: sasl
- name: sharded_causally_consistent_jscore_txns_passthrough
+ - name: sharded_collections_causally_consistent_jscore_txns_passthrough
- name: sharded_collections_jscore_passthrough
- name: sharded_jscore_txns
- name: sharded_jscore_txns_sharded_collections
@@ -13671,6 +13702,7 @@ buildvariants:
- name: replica_sets_jscore_passthrough
- name: sasl
- name: sharded_causally_consistent_jscore_txns_passthrough
+ - name: sharded_collections_causally_consistent_jscore_txns_passthrough
- name: sharded_collections_jscore_passthrough
- name: sharded_jscore_txns
- name: sharded_jscore_txns_sharded_collections
@@ -14077,6 +14109,7 @@ buildvariants:
- name: replica_sets_jscore_passthrough
- name: sasl
- name: sharded_causally_consistent_jscore_txns_passthrough
+ - name: sharded_collections_causally_consistent_jscore_txns_passthrough
- name: sharded_collections_jscore_passthrough
- name: sharded_jscore_txns
- name: sharded_jscore_txns_sharded_collections
@@ -14192,6 +14225,7 @@ buildvariants:
- name: slow1
- name: serial_run
- name: sharded_causally_consistent_jscore_txns_passthrough
+ - name: sharded_collections_causally_consistent_jscore_txns_passthrough
- name: sharded_jscore_txns
- name: sharded_jscore_txns_sharded_collections
- name: sharding_jscore_passthrough
@@ -14516,6 +14550,7 @@ buildvariants:
- name: slow1
- name: serial_run
- name: sharded_causally_consistent_jscore_txns_passthrough
+ - name: sharded_collections_causally_consistent_jscore_txns_passthrough
- name: sharded_collections_jscore_passthrough
- name: sharded_jscore_txns
- name: sharded_jscore_txns_sharded_collections
@@ -14660,6 +14695,7 @@ buildvariants:
- name: sasl
- name: session_jscore_passthrough
- name: sharded_causally_consistent_jscore_txns_passthrough
+ - name: sharded_collections_causally_consistent_jscore_txns_passthrough
- name: sharded_jscore_txns
- name: sharded_jscore_txns_sharded_collections
- name: sharded_collections_jscore_passthrough
@@ -15016,6 +15052,7 @@ buildvariants:
- name: slow1
- name: serial_run
- name: sharded_causally_consistent_jscore_txns_passthrough
+ - name: sharded_collections_causally_consistent_jscore_txns_passthrough
- name: sharded_collections_jscore_passthrough
- name: sharded_jscore_txns
- name: sharded_jscore_txns_sharded_collections
@@ -15094,6 +15131,7 @@ buildvariants:
- name: replica_sets_jscore_passthrough
- name: sasl
- name: sharded_causally_consistent_jscore_txns_passthrough
+ - name: sharded_collections_causally_consistent_jscore_txns_passthrough
- name: sharded_collections_jscore_passthrough
- name: sharded_jscore_txns
- name: sharded_jscore_txns_sharded_collections
@@ -15198,6 +15236,7 @@ buildvariants:
- name: replica_sets_jscore_passthrough
- name: sasl
- name: sharded_causally_consistent_jscore_txns_passthrough
+ - name: sharded_collections_causally_consistent_jscore_txns_passthrough
- name: sharded_collections_jscore_passthrough
- name: sharded_jscore_txns
- name: sharded_jscore_txns_sharded_collections
@@ -15356,6 +15395,7 @@ buildvariants:
- name: sasl
- name: session_jscore_passthrough
- name: sharded_causally_consistent_jscore_txns_passthrough
+ - name: sharded_collections_causally_consistent_jscore_txns_passthrough
- name: sharded_collections_jscore_passthrough
- name: sharded_jscore_txns
- name: sharded_jscore_txns_sharded_collections
@@ -15549,6 +15589,7 @@ buildvariants:
- name: sasl
- name: session_jscore_passthrough
- name: sharded_causally_consistent_jscore_txns_passthrough
+ - name: sharded_collections_causally_consistent_jscore_txns_passthrough
- name: sharded_collections_jscore_passthrough
- name: sharded_jscore_txns
- name: sharded_jscore_txns_sharded_collections
@@ -15697,6 +15738,7 @@ buildvariants:
- name: replica_sets_kill_secondaries_jscore_passthrough
- name: sasl
- name: sharded_causally_consistent_jscore_txns_passthrough
+ - name: sharded_collections_causally_consistent_jscore_txns_passthrough
- name: sharded_collections_jscore_passthrough
- name: sharded_jscore_txns
- name: sharded_jscore_txns_sharded_collections