diff options
author | Martin Neupauer <martin.neupauer@mongodb.com> | 2019-04-01 09:49:52 -0400 |
---|---|---|
committer | Martin Neupauer <martin.neupauer@mongodb.com> | 2019-04-01 09:50:00 -0400 |
commit | 399db8ee6b738abbb69f4addac6f65542e18b234 (patch) | |
tree | 869ac4bf6007729b40ae350c3f64a17e7ec342b9 | |
parent | 14c10e3d861cf77b71a3ce07438295d34612c2f0 (diff) | |
download | mongo-399db8ee6b738abbb69f4addac6f65542e18b234.tar.gz |
SERVER-40391 Remove low value explain2.js test
3 files changed, 0 insertions, 42 deletions
diff --git a/buildscripts/resmokeconfig/suites/replica_sets_kill_primary_jscore_passthrough.yml b/buildscripts/resmokeconfig/suites/replica_sets_kill_primary_jscore_passthrough.yml index 632a88953d0..5c8debf5991 100644 --- a/buildscripts/resmokeconfig/suites/replica_sets_kill_primary_jscore_passthrough.yml +++ b/buildscripts/resmokeconfig/suites/replica_sets_kill_primary_jscore_passthrough.yml @@ -72,11 +72,6 @@ selector: # Creates new mongo connection but won't retry connecting. - jstests/core/shell_connection_strings.js - # Explain command runs for 6 seconds in this test, whereas we kill the primary every 8 seconds. If - # it takes longer than two seconds for the new primary to step up, there isn't enough time for the - # explain command to run. - - jstests/core/explain2.js - # Starts a parallel shell but won't restart it after unclean shutdown. # TODO SERVER-33229: Remove these exclusions - jstests/core/compact_keeps_indexes.js diff --git a/buildscripts/resmokeconfig/suites/replica_sets_terminate_primary_jscore_passthrough.yml b/buildscripts/resmokeconfig/suites/replica_sets_terminate_primary_jscore_passthrough.yml index 2314dd1aa4b..d29056d26b8 100644 --- a/buildscripts/resmokeconfig/suites/replica_sets_terminate_primary_jscore_passthrough.yml +++ b/buildscripts/resmokeconfig/suites/replica_sets_terminate_primary_jscore_passthrough.yml @@ -72,11 +72,6 @@ selector: # Creates new mongo connection but won't retry connecting. - jstests/core/shell_connection_strings.js - # Explain command runs for 6 seconds in this test, whereas we kill the primary every 8 seconds. If - # it takes longer than two seconds for the new primary to step up, there isn't enough time for the - # explain command to run. - - jstests/core/explain2.js - # Starts a parallel shell but won't restart it after shutdown. # TODO SERVER-33229: Remove these exclusions - jstests/core/compact_keeps_indexes.js diff --git a/jstests/core/explain2.js b/jstests/core/explain2.js deleted file mode 100644 index 930a2ffb037..00000000000 --- a/jstests/core/explain2.js +++ /dev/null @@ -1,32 +0,0 @@ -// Test calculation of the 'millis' field in explain output. -// This test makes assertions on how long a particular query will sleep. When the collection is -// sharded each shard may sleep for less time than is expected. -// @tags: [ -// assumes_unsharded_collection, -// -// # Uses $where operator -// requires_scripting, -// ] - -t = db.jstests_explain2; -t.drop(); - -t.ensureIndex({a: 1}); -for (i = 1000; i < 4000; i += 1000) { - t.save({a: i}); -} - -// Run a query with one $or clause per a-value, each of which sleeps for 'a' milliseconds. -function slow() { - sleep(this.a); - return true; -} -clauses = []; -for (i = 1000; i < 4000; i += 1000) { - clauses.push({a: i, $where: slow}); -} -explain = t.find({$or: clauses}).explain(true); -printjson(explain); - -// Verify the duration of the whole query, and of each clause. -assert.gt(explain.executionStats.executionTimeMillis, 1000 - 500 + 2000 - 500 + 3000 - 500); |