diff options
author | Eric Milkie <milkie@10gen.com> | 2016-03-14 13:56:45 -0400 |
---|---|---|
committer | Eric Milkie <milkie@10gen.com> | 2016-03-15 13:28:47 -0400 |
commit | 61fd8eefb0fd8e563014b82b2d928d9b0bafda7b (patch) | |
tree | d6facaff9a0f0382bff93fd9ac5a52e9ebe80a65 /jstests | |
parent | a40991b77d885ceb3048b9eaf3b5100e259234b9 (diff) | |
download | mongo-61fd8eefb0fd8e563014b82b2d928d9b0bafda7b.tar.gz |
SERVER-23111 isolate election_timing.js and memory.js by creating new serial_run suite
Diffstat (limited to 'jstests')
-rw-r--r-- | jstests/noPassthrough/cursor_timeout.js (renamed from jstests/slow2/cursor_timeout.js) | 0 | ||||
-rw-r--r-- | jstests/replsets/replsets_killop.js (renamed from jstests/slow2/replsets_killop.js) | 0 | ||||
-rw-r--r-- | jstests/serial_run/README | 2 | ||||
-rw-r--r-- | jstests/serial_run/election_timing.js (renamed from jstests/slow1/election_timing.js) | 0 | ||||
-rw-r--r-- | jstests/serial_run/memory.js (renamed from jstests/slow1/memory.js) | 0 | ||||
-rw-r--r-- | jstests/slow1/conc_update.js (renamed from jstests/slow2/conc_update.js) | 0 | ||||
-rw-r--r-- | jstests/slow1/mr_during_migrate.js (renamed from jstests/slow2/mr_during_migrate.js) | 0 | ||||
-rw-r--r-- | jstests/slow1/remove_during_mr.js (renamed from jstests/slow2/remove_during_mr.js) | 0 | ||||
-rw-r--r-- | jstests/slow2/32bit.js | 146 |
9 files changed, 2 insertions, 146 deletions
diff --git a/jstests/slow2/cursor_timeout.js b/jstests/noPassthrough/cursor_timeout.js index f74521b9bc9..f74521b9bc9 100644 --- a/jstests/slow2/cursor_timeout.js +++ b/jstests/noPassthrough/cursor_timeout.js diff --git a/jstests/slow2/replsets_killop.js b/jstests/replsets/replsets_killop.js index ea1cd560b91..ea1cd560b91 100644 --- a/jstests/slow2/replsets_killop.js +++ b/jstests/replsets/replsets_killop.js diff --git a/jstests/serial_run/README b/jstests/serial_run/README new file mode 100644 index 00000000000..73bc3344f1d --- /dev/null +++ b/jstests/serial_run/README @@ -0,0 +1,2 @@ +This suite contains tests that are unusually susceptible to availability of machine resources; +therefore, this suite is always run with --jobs=1 via Evergreen config.
\ No newline at end of file diff --git a/jstests/slow1/election_timing.js b/jstests/serial_run/election_timing.js index 2fe83be02ed..2fe83be02ed 100644 --- a/jstests/slow1/election_timing.js +++ b/jstests/serial_run/election_timing.js diff --git a/jstests/slow1/memory.js b/jstests/serial_run/memory.js index 9d67aa7aab6..9d67aa7aab6 100644 --- a/jstests/slow1/memory.js +++ b/jstests/serial_run/memory.js diff --git a/jstests/slow2/conc_update.js b/jstests/slow1/conc_update.js index b7b8b836831..b7b8b836831 100644 --- a/jstests/slow2/conc_update.js +++ b/jstests/slow1/conc_update.js diff --git a/jstests/slow2/mr_during_migrate.js b/jstests/slow1/mr_during_migrate.js index cb439aeb241..cb439aeb241 100644 --- a/jstests/slow2/mr_during_migrate.js +++ b/jstests/slow1/mr_during_migrate.js diff --git a/jstests/slow2/remove_during_mr.js b/jstests/slow1/remove_during_mr.js index 9b632a11a56..9b632a11a56 100644 --- a/jstests/slow2/remove_during_mr.js +++ b/jstests/slow1/remove_during_mr.js diff --git a/jstests/slow2/32bit.js b/jstests/slow2/32bit.js deleted file mode 100644 index d8b2c5ff728..00000000000 --- a/jstests/slow2/32bit.js +++ /dev/null @@ -1,146 +0,0 @@ -// 32bit.js dm - -// Use Random.rand() and helpers, not Math.random() - -var abortSlowHost = true; -var forceSeedToBe = null; - -if (forceSeedToBe) { - print("\n32bit.js WARNING FORCING A SPECIFIC SEED"); - print("seed=" + forceSeedToBe); - Random.srand(forceSeedToBe); -} else { - Random.setRandomSeed(); -} - -function f() { - 'use strict'; - - var pass = 1; - var mydb = db.getSisterDB("test_32bit"); - var t = mydb.colltest_32bit; - - mydb.dropDatabase(); - - while (1) { - if (pass >= 2) { - break; - } - print("32bit.js PASS #" + pass); - pass++; - - t.insert({x: 1}); - t.ensureIndex({a: 1}); - t.ensureIndex({b: 1}, true); - t.ensureIndex({x: 1}); - if (Random.rand() < 0.3) { - t.ensureIndex({c: 1}); - } - t.ensureIndex({d: 1}); - t.ensureIndex({e: 1}); - t.ensureIndex({f: 1}); - - // create 448 byte string - var big = 'a b'; - big = big + big; - big = big + big; - big = big + big; - big = big + big; - - var a = 0; - var c = 'kkk'; - var start = new Date(); - var b, d, f, cc; - - while (1) { - // Insert: - // a: number, integer count of documents inserted - // b: number, random in range [0.0, 1.0) - // c: null (10% chance) or string big (90% chance) - // d: string "kkk-<value of a>" - // f: number, a + random in range [0.0, 1.0) - - b = Random.rand(); - d = c + -a; - f = Random.rand() + a; - a++; - cc = big; - if (Random.rand() < 0.1) { - cc = null; - } - - var res = t.insert({a: a, b: b, c: cc, d: d, f: f}); - if (res.hasWriteError()) { - // Presumably we have mmap error on 32 bit. try a few more manipulations - // attempting to break things. - t.insert({a: 33, b: 44, c: 55, d: 66, f: 66}); - t.insert({a: 33, b: 44000, c: 55, d: 66}); - t.insert({a: 33, b: 440000, c: 55}); - t.insert({a: 33, b: 4400000}); - t.update({a: 20}, {'$set': {c: 'abc'}}); - t.update({a: 21}, {'$set': {c: 'aadsfbc'}}); - t.update({a: 22}, {'$set': {c: 'c'}}); - t.update({a: 23}, {'$set': {b: cc}}); - t.remove({a: 22}); - break; - } - - if (Random.rand() < 0.01) { - t.remove({a: a}); - t.remove({b: Random.rand()}); - t.insert({e: 1}); - t.insert({f: 'aaaaaaaaaa'}); - - if (Random.rand() < 0.00001) { - print("remove cc"); - t.remove({c: cc}); - } - if (Random.rand() < 0.0001) { - print("update cc"); - t.update({c: cc}, {'$set': {c: 1}}, false, true); - } - if (Random.rand() < 0.00001) { - print("remove e"); - t.remove({e: 1}); - } - } - if (a == 20000) { - var delta_ms = (new Date()) - start; - // 2MM / 20000 = 100. 1000ms/sec. - var eta_secs = delta_ms * (100 / 1000); - print("32bit.js eta_secs:" + eta_secs); - if (eta_secs > 1000 && abortSlowHost) { - print("32bit.js machine is slow, stopping early. a:" + a); - mydb.dropDatabase(); - return; - } - } - if (a % 100000 == 0) { - print(a); - // on 64 bit we won't error out, so artificially stop. on 32 bit we will hit - // mmap limit ~1.6MM but may vary by a factor of 2x by platform - if (a >= 2200000) { - mydb.dropDatabase(); - return; - } - } - } - print("count: " + t.count()); - - var res = t.validate(); - if (!res.valid) { - print("32bit.js FAIL validating"); - print(res.result); - printjson(res); - // mydb.dropDatabase(); - throw Error("fail validating 32bit.js"); - } - - mydb.dropDatabase(); - } - - print("32bit.js SUCCESS"); -} - -print("\n32bit.js running - this test is slow."); -f(); |