summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTommaso Tocci <tommaso.tocci@mongodb.com>2020-05-01 23:41:05 +0200
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-05-04 15:37:37 +0000
commitcf42e235242108486757e12a46e4856b33c83083 (patch)
tree165a4f0a7d47a4fd1379b8011ea7bc42e3de0ce0
parent98ea7ffe741242c937d57d8ee2258be69a18c633 (diff)
downloadmongo-cf42e235242108486757e12a46e4856b33c83083.tar.gz
SERVER-44240 Remove unused test concurrency/fsm_workloads/database_versioning.js
-rw-r--r--buildscripts/resmokeconfig/suites/concurrency_sharded_causal_consistency.yml3
-rw-r--r--buildscripts/resmokeconfig/suites/concurrency_sharded_causal_consistency_and_balancer.yml3
-rw-r--r--buildscripts/resmokeconfig/suites/concurrency_sharded_kill_primary_with_balancer.yml4
-rw-r--r--buildscripts/resmokeconfig/suites/concurrency_sharded_local_read_write_multi_stmt_txn.yml3
-rw-r--r--buildscripts/resmokeconfig/suites/concurrency_sharded_local_read_write_multi_stmt_txn_with_balancer.yml3
-rw-r--r--buildscripts/resmokeconfig/suites/concurrency_sharded_multi_stmt_txn.yml3
-rw-r--r--buildscripts/resmokeconfig/suites/concurrency_sharded_multi_stmt_txn_kill_primary.yml3
-rw-r--r--buildscripts/resmokeconfig/suites/concurrency_sharded_multi_stmt_txn_terminate_primary.yml3
-rw-r--r--buildscripts/resmokeconfig/suites/concurrency_sharded_multi_stmt_txn_with_balancer.yml3
-rw-r--r--buildscripts/resmokeconfig/suites/concurrency_sharded_multi_stmt_txn_with_stepdowns.yml3
-rw-r--r--buildscripts/resmokeconfig/suites/concurrency_sharded_replication.yml3
-rw-r--r--buildscripts/resmokeconfig/suites/concurrency_sharded_replication_with_balancer.yml3
-rw-r--r--buildscripts/resmokeconfig/suites/concurrency_sharded_terminate_primary_with_balancer.yml4
-rw-r--r--buildscripts/resmokeconfig/suites/concurrency_sharded_with_stepdowns.yml4
-rw-r--r--buildscripts/resmokeconfig/suites/concurrency_sharded_with_stepdowns_and_balancer.yml4
-rw-r--r--jstests/concurrency/fsm_workloads/database_versioning.js146
16 files changed, 0 insertions, 195 deletions
diff --git a/buildscripts/resmokeconfig/suites/concurrency_sharded_causal_consistency.yml b/buildscripts/resmokeconfig/suites/concurrency_sharded_causal_consistency.yml
index a09653ab960..56cef44b2ec 100644
--- a/buildscripts/resmokeconfig/suites/concurrency_sharded_causal_consistency.yml
+++ b/buildscripts/resmokeconfig/suites/concurrency_sharded_causal_consistency.yml
@@ -92,9 +92,6 @@ selector:
- jstests/concurrency/fsm_workloads/yield_and_hashed.js
- jstests/concurrency/fsm_workloads/yield_and_sorted.js
- # TODO Unblacklist (SERVER-35538).
- - jstests/concurrency/fsm_workloads/database_versioning.js
-
exclude_with_any_tags:
- does_not_support_causal_consistency
- assumes_balancer_on
diff --git a/buildscripts/resmokeconfig/suites/concurrency_sharded_causal_consistency_and_balancer.yml b/buildscripts/resmokeconfig/suites/concurrency_sharded_causal_consistency_and_balancer.yml
index a1083cddc5b..b778ac18a62 100644
--- a/buildscripts/resmokeconfig/suites/concurrency_sharded_causal_consistency_and_balancer.yml
+++ b/buildscripts/resmokeconfig/suites/concurrency_sharded_causal_consistency_and_balancer.yml
@@ -98,9 +98,6 @@ selector:
- jstests/concurrency/fsm_workloads/yield_and_hashed.js
- jstests/concurrency/fsm_workloads/yield_and_sorted.js
- # TODO Unblacklist (SERVER-35538).
- - jstests/concurrency/fsm_workloads/database_versioning.js
-
# SERVER-44160 Modify cleanupOrphaned to wait for overlapping ranges to finish
- jstests/concurrency/fsm_workloads/cleanupOrphanedWhileMigrating.js
diff --git a/buildscripts/resmokeconfig/suites/concurrency_sharded_kill_primary_with_balancer.yml b/buildscripts/resmokeconfig/suites/concurrency_sharded_kill_primary_with_balancer.yml
index 397b842e1b2..c9139efd6f7 100644
--- a/buildscripts/resmokeconfig/suites/concurrency_sharded_kill_primary_with_balancer.yml
+++ b/buildscripts/resmokeconfig/suites/concurrency_sharded_kill_primary_with_balancer.yml
@@ -171,10 +171,6 @@ selector:
# much value in running it.
- jstests/concurrency/fsm_workloads/drop_collection.js
- # It fails with PooledConnectionsDropped when setFCV is run concurrently with movePrimary, which
- # seems like it's due to a race condition in the NetworkInterfaceTL.
- - jstests/concurrency/fsm_workloads/database_versioning.js
-
# serverStatus does not include transaction metrics on mongos.
- jstests/concurrency/fsm_workloads/multi_statement_transaction_atomicity_isolation_metrics_test.js
diff --git a/buildscripts/resmokeconfig/suites/concurrency_sharded_local_read_write_multi_stmt_txn.yml b/buildscripts/resmokeconfig/suites/concurrency_sharded_local_read_write_multi_stmt_txn.yml
index 00f8b7c72a9..c29a09bcd2a 100644
--- a/buildscripts/resmokeconfig/suites/concurrency_sharded_local_read_write_multi_stmt_txn.yml
+++ b/buildscripts/resmokeconfig/suites/concurrency_sharded_local_read_write_multi_stmt_txn.yml
@@ -93,9 +93,6 @@ selector:
- jstests/concurrency/fsm_workloads/yield_and_hashed.js
- jstests/concurrency/fsm_workloads/yield_and_sorted.js
- # TODO Unblacklist (SERVER-35538).
- - jstests/concurrency/fsm_workloads/database_versioning.js
-
# TODO Unblacklist (SERVER-38852).
- jstests/concurrency/fsm_workloads/agg_out_interrupt_cleanup.js
diff --git a/buildscripts/resmokeconfig/suites/concurrency_sharded_local_read_write_multi_stmt_txn_with_balancer.yml b/buildscripts/resmokeconfig/suites/concurrency_sharded_local_read_write_multi_stmt_txn_with_balancer.yml
index b7b46989ae7..ce6eeae315e 100644
--- a/buildscripts/resmokeconfig/suites/concurrency_sharded_local_read_write_multi_stmt_txn_with_balancer.yml
+++ b/buildscripts/resmokeconfig/suites/concurrency_sharded_local_read_write_multi_stmt_txn_with_balancer.yml
@@ -93,9 +93,6 @@ selector:
- jstests/concurrency/fsm_workloads/yield_and_hashed.js
- jstests/concurrency/fsm_workloads/yield_and_sorted.js
- # TODO Unblacklist (SERVER-35538).
- - jstests/concurrency/fsm_workloads/database_versioning.js
-
# TODO Unblacklist (SERVER-38852).
- jstests/concurrency/fsm_workloads/agg_out_interrupt_cleanup.js
diff --git a/buildscripts/resmokeconfig/suites/concurrency_sharded_multi_stmt_txn.yml b/buildscripts/resmokeconfig/suites/concurrency_sharded_multi_stmt_txn.yml
index 799fb689c33..066fb2ac88c 100644
--- a/buildscripts/resmokeconfig/suites/concurrency_sharded_multi_stmt_txn.yml
+++ b/buildscripts/resmokeconfig/suites/concurrency_sharded_multi_stmt_txn.yml
@@ -93,9 +93,6 @@ selector:
- jstests/concurrency/fsm_workloads/yield_and_hashed.js
- jstests/concurrency/fsm_workloads/yield_and_sorted.js
- # TODO Unblacklist (SERVER-35538).
- - jstests/concurrency/fsm_workloads/database_versioning.js
-
# TODO Unblacklist (SERVER-38852).
- jstests/concurrency/fsm_workloads/agg_out_interrupt_cleanup.js
diff --git a/buildscripts/resmokeconfig/suites/concurrency_sharded_multi_stmt_txn_kill_primary.yml b/buildscripts/resmokeconfig/suites/concurrency_sharded_multi_stmt_txn_kill_primary.yml
index 311380b8e89..c54097471fb 100644
--- a/buildscripts/resmokeconfig/suites/concurrency_sharded_multi_stmt_txn_kill_primary.yml
+++ b/buildscripts/resmokeconfig/suites/concurrency_sharded_multi_stmt_txn_kill_primary.yml
@@ -109,9 +109,6 @@ selector:
- jstests/concurrency/fsm_workloads/yield_and_hashed.js
- jstests/concurrency/fsm_workloads/yield_and_sorted.js
- # TODO Unblacklist (SERVER-35538).
- - jstests/concurrency/fsm_workloads/database_versioning.js
-
# TODO Unblacklist (SERVER-38852).
- jstests/concurrency/fsm_workloads/agg_out_interrupt_cleanup.js
diff --git a/buildscripts/resmokeconfig/suites/concurrency_sharded_multi_stmt_txn_terminate_primary.yml b/buildscripts/resmokeconfig/suites/concurrency_sharded_multi_stmt_txn_terminate_primary.yml
index ded60306b90..ee6b935a264 100644
--- a/buildscripts/resmokeconfig/suites/concurrency_sharded_multi_stmt_txn_terminate_primary.yml
+++ b/buildscripts/resmokeconfig/suites/concurrency_sharded_multi_stmt_txn_terminate_primary.yml
@@ -109,9 +109,6 @@ selector:
- jstests/concurrency/fsm_workloads/yield_and_hashed.js
- jstests/concurrency/fsm_workloads/yield_and_sorted.js
- # TODO Unblacklist (SERVER-35538).
- - jstests/concurrency/fsm_workloads/database_versioning.js
-
# TODO Unblacklist (SERVER-38852).
- jstests/concurrency/fsm_workloads/agg_out_interrupt_cleanup.js
diff --git a/buildscripts/resmokeconfig/suites/concurrency_sharded_multi_stmt_txn_with_balancer.yml b/buildscripts/resmokeconfig/suites/concurrency_sharded_multi_stmt_txn_with_balancer.yml
index 6f719225970..4aa7ad27f5a 100644
--- a/buildscripts/resmokeconfig/suites/concurrency_sharded_multi_stmt_txn_with_balancer.yml
+++ b/buildscripts/resmokeconfig/suites/concurrency_sharded_multi_stmt_txn_with_balancer.yml
@@ -93,9 +93,6 @@ selector:
- jstests/concurrency/fsm_workloads/yield_and_hashed.js
- jstests/concurrency/fsm_workloads/yield_and_sorted.js
- # TODO Unblacklist (SERVER-35538).
- - jstests/concurrency/fsm_workloads/database_versioning.js
-
# TODO Unblacklist (SERVER-38852).
- jstests/concurrency/fsm_workloads/agg_out_interrupt_cleanup.js
diff --git a/buildscripts/resmokeconfig/suites/concurrency_sharded_multi_stmt_txn_with_stepdowns.yml b/buildscripts/resmokeconfig/suites/concurrency_sharded_multi_stmt_txn_with_stepdowns.yml
index c4648343ebb..b509746568e 100644
--- a/buildscripts/resmokeconfig/suites/concurrency_sharded_multi_stmt_txn_with_stepdowns.yml
+++ b/buildscripts/resmokeconfig/suites/concurrency_sharded_multi_stmt_txn_with_stepdowns.yml
@@ -95,9 +95,6 @@ selector:
- jstests/concurrency/fsm_workloads/yield_and_hashed.js
- jstests/concurrency/fsm_workloads/yield_and_sorted.js
- # TODO Unblacklist (SERVER-35538).
- - jstests/concurrency/fsm_workloads/database_versioning.js
-
# TODO Unblacklist (SERVER-38852).
- jstests/concurrency/fsm_workloads/agg_out_interrupt_cleanup.js
diff --git a/buildscripts/resmokeconfig/suites/concurrency_sharded_replication.yml b/buildscripts/resmokeconfig/suites/concurrency_sharded_replication.yml
index e75a6bc2dfb..4792321c1f7 100644
--- a/buildscripts/resmokeconfig/suites/concurrency_sharded_replication.yml
+++ b/buildscripts/resmokeconfig/suites/concurrency_sharded_replication.yml
@@ -92,9 +92,6 @@ selector:
- jstests/concurrency/fsm_workloads/yield_and_hashed.js
- jstests/concurrency/fsm_workloads/yield_and_sorted.js
- # TODO Unblacklist (SERVER-35538).
- - jstests/concurrency/fsm_workloads/database_versioning.js
-
# TODO Unblacklist (SERVER-38852).
- jstests/concurrency/fsm_workloads/agg_out_interrupt_cleanup.js
diff --git a/buildscripts/resmokeconfig/suites/concurrency_sharded_replication_with_balancer.yml b/buildscripts/resmokeconfig/suites/concurrency_sharded_replication_with_balancer.yml
index 2c09db46c15..f1a793d25a6 100644
--- a/buildscripts/resmokeconfig/suites/concurrency_sharded_replication_with_balancer.yml
+++ b/buildscripts/resmokeconfig/suites/concurrency_sharded_replication_with_balancer.yml
@@ -97,9 +97,6 @@ selector:
- jstests/concurrency/fsm_workloads/yield_and_hashed.js
- jstests/concurrency/fsm_workloads/yield_and_sorted.js
- # TODO Unblacklist (SERVER-35538).
- - jstests/concurrency/fsm_workloads/database_versioning.js
-
# TODO Unblacklist (SERVER-38852).
- jstests/concurrency/fsm_workloads/agg_out_interrupt_cleanup.js
diff --git a/buildscripts/resmokeconfig/suites/concurrency_sharded_terminate_primary_with_balancer.yml b/buildscripts/resmokeconfig/suites/concurrency_sharded_terminate_primary_with_balancer.yml
index 1fdce9e2498..f4e9d6848ca 100644
--- a/buildscripts/resmokeconfig/suites/concurrency_sharded_terminate_primary_with_balancer.yml
+++ b/buildscripts/resmokeconfig/suites/concurrency_sharded_terminate_primary_with_balancer.yml
@@ -171,10 +171,6 @@ selector:
# much value in running it.
- jstests/concurrency/fsm_workloads/drop_collection.js
- # It fails with PooledConnectionsDropped when setFCV is run concurrently with movePrimary, which
- # seems like it's due to a race condition in the NetworkInterfaceTL.
- - jstests/concurrency/fsm_workloads/database_versioning.js
-
# serverStatus does not include transaction metrics on mongos.
- jstests/concurrency/fsm_workloads/multi_statement_transaction_atomicity_isolation_metrics_test.js
diff --git a/buildscripts/resmokeconfig/suites/concurrency_sharded_with_stepdowns.yml b/buildscripts/resmokeconfig/suites/concurrency_sharded_with_stepdowns.yml
index 1d4fab7b46b..89cb2361946 100644
--- a/buildscripts/resmokeconfig/suites/concurrency_sharded_with_stepdowns.yml
+++ b/buildscripts/resmokeconfig/suites/concurrency_sharded_with_stepdowns.yml
@@ -158,10 +158,6 @@ selector:
# much value in running it.
- jstests/concurrency/fsm_workloads/drop_collection.js
- # It fails with PooledConnectionsDropped when setFCV is run concurrently with movePrimary, which
- # seems like it's due to a race condition in the NetworkInterfaceTL.
- - jstests/concurrency/fsm_workloads/database_versioning.js
-
# serverStatus does not include transaction metrics on mongos.
- jstests/concurrency/fsm_workloads/multi_statement_transaction_atomicity_isolation_metrics_test.js
diff --git a/buildscripts/resmokeconfig/suites/concurrency_sharded_with_stepdowns_and_balancer.yml b/buildscripts/resmokeconfig/suites/concurrency_sharded_with_stepdowns_and_balancer.yml
index 02359e4196a..13f2672eabb 100644
--- a/buildscripts/resmokeconfig/suites/concurrency_sharded_with_stepdowns_and_balancer.yml
+++ b/buildscripts/resmokeconfig/suites/concurrency_sharded_with_stepdowns_and_balancer.yml
@@ -163,10 +163,6 @@ selector:
# much value in running it.
- jstests/concurrency/fsm_workloads/drop_collection.js
- # It fails with PooledConnectionsDropped when setFCV is run concurrently with movePrimary, which
- # seems like it's due to a race condition in the NetworkInterfaceTL.
- - jstests/concurrency/fsm_workloads/database_versioning.js
-
# serverStatus does not include transaction metrics on mongos.
- jstests/concurrency/fsm_workloads/multi_statement_transaction_atomicity_isolation_metrics_test.js
diff --git a/jstests/concurrency/fsm_workloads/database_versioning.js b/jstests/concurrency/fsm_workloads/database_versioning.js
deleted file mode 100644
index 93331798908..00000000000
--- a/jstests/concurrency/fsm_workloads/database_versioning.js
+++ /dev/null
@@ -1,146 +0,0 @@
-'use strict';
-
-/**
- * Stress tests writes to config.databases while continuously running setFCV to ensure that the
- * config.databases schema always matches the FCV.
- *
- * @tags: [requires_sharding]
- */
-
-var $config = (function() {
- var states = (function() {
- function init(db, collName) {
- // Dynamically load the shard names for the movePrimary thread to avoid hard-coding
- // them.
- this.shards = db.getSiblingDB("config").shards.find().toArray().map(shard => shard._id);
- }
-
- function setFCV(db, data) {
- if (data.fcv === undefined) {
- data.fcv = latestFCV;
- }
-
- // First check that the current entries match the current FCV's schema.
- const databases = db.getSiblingDB("config").databases.find().toArray();
- for (let i in databases) {
- const database = databases[i];
- if (data.fcv === lastStableFCV) {
- assertAlways.eq(
- undefined,
- database.version,
- "database had a version in FCV " + lastStableFCV + ": " + tojson(database));
- } else {
- assertAlways.neq(
- undefined,
- database.version,
- "database had a version in FCV " + latestFCV + ": " + tojson(database));
- }
- }
-
- // Then change the FCV.
- data.fcv = (data.fcv === latestFCV) ? lastStableFCV : latestFCV;
- assertAlways.commandWorked(db.adminCommand({setFeatureCompatibilityVersion: data.fcv}));
- }
-
- function createWithEnableSharding(db, data) {
- data.dbNameCount = (data.dbNameCount === undefined) ? 0 : data.dbNameCount + 1;
- assertAlways.commandWorked(
- db.adminCommand({enableSharding: "createWithEnableShardingDb" + data.dbNameCount}));
- }
-
- function createWithInsert(db, data) {
- data.dbNameCount = (data.dbNameCount === undefined) ? 0 : data.dbNameCount + 1;
- assertAlways.commandWorked(
- db.getSiblingDB("createWithInsertDb" + data.dbNameCount).foo.insert({x: 1}));
- }
-
- function movePrimary(db, data) {
- // Assume an arbitrary shard is the current primary shard; if it's not, the first
- // iteration will be a no-op.
- if (data.primaryShard === undefined) {
- data.primaryShard = data.shards[0];
- }
-
- const toShard =
- (data.primaryShard === data.shards[0]) ? data.shards[1] : data.shards[0];
- const res = db.adminCommand({movePrimary: "movePrimaryDb", to: toShard});
-
- // movePrimary will correctly error if the FCV changes while it is running.
- if (res.code === ErrorCodes.ConflictingOperationInProgress) {
- return;
- }
-
- assertAlways.commandWorked(res);
- data.primaryShard = toShard;
- }
-
- function state(db, collName) {
- switch (this.tid) {
- case 0:
- setFCV(db, this);
- break;
- case 1:
- createWithEnableSharding(db, this);
- break;
- case 2:
- createWithInsert(db, this);
- break;
- case 3:
- movePrimary(db, this);
- break;
- }
- }
-
- return {init: init, state: state};
- })();
-
- var transitions = {init: {state: 1}, state: {state: 1}};
-
- function setup(db, collName, cluster) {
- // Ensure the cluster starts in FCV 4.0.
- assertAlways.commandWorked(db.adminCommand({setFeatureCompatibilityVersion: latestFCV}));
-
- // Create a database for the thread doing movePrimary. Use 'enableSharding' rather than
- // an insert to create the database (if an unsharded collection exists in a database and an
- // initial movePrimary attempt fails after copying the unsharded collection to the new
- // primary, retrying the movePrimary will fail).
- assertAlways.commandWorked(db.adminCommand({enableSharding: "movePrimaryDb"}));
- }
-
- function teardown(db, collName, cluster) {
- // Ensure all databases have data in them so that they show up in listDatabases (which calls
- // listDatabases against all shards rather than reading config.databases). This guarantees
- // they are dropped by the cleanup hook.
- const databases = db.getSiblingDB("config").databases.find().toArray();
- for (let i in databases) {
- const database = databases[i];
- assertAlways.commandWorked(db.getSiblingDB(databases[i]._id).foo.insert({x: 1}));
- }
-
- // If this workload is run with --repeat, mongos will already have all the database entries
- // cached. Because of SERVER-xxx (mongos does not mark its database entry as invalid on
- // CannotImplicitlyCreateCollection), this mongos will never realize the databases have been
- // dropped, and so will never send the implicit createDatabase for writes in the next run
- // (and instead will exhaust retries of CannotImplicitlyCreateCollection).
- // As a temporary workaround, flush mongos's cache at the end of each workload.
- assertAlways.commandWorked(db.adminCommand({flushRouterConfig: 1}));
- }
-
- // This test performs sharding catalog operations (which take distributed locks) concurrently
- // from many threads. Since a distributed lock is acquired by repeatedly attempting to grab the
- // lock every half second for 20 seconds (a max of 40 attempts), it's possible that some thread
- // will be starved by the other threads and fail to grab the lock after 40 attempts. To reduce
- // the likelihood of this, we choose threadCount and iterations so that threadCount * iterations
- // does not exceed 40.
- // Note that this test's structure requires at least 4 threads (one per sharding catalog op).
- // The iterations can be increased after PM-697 ("Remove all usages of distributed lock").
- return {
- threadCount: 4,
- iterations: 10,
- data: {},
- states: states,
- transitions: transitions,
- setup: setup,
- teardown: teardown,
- };
-})();