summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormatt dannenberg <matt.dannenberg@10gen.com>2016-03-03 04:34:52 -0500
committermatt dannenberg <matt.dannenberg@10gen.com>2016-03-03 04:34:52 -0500
commit56b626fd661f09cb118a1a180902134f07f5fdb7 (patch)
tree75038b4f2e39bdff50ef80256f5a73c5e9389b0f
parent98150643cacff860b8bd6a965b5fcff2786660cd (diff)
downloadmongo-56b626fd661f09cb118a1a180902134f07f5fdb7.tar.gz
SERVER-22929 remove rollback4.js
-rw-r--r--jstests/slow2/rollback4.js70
1 files changed, 0 insertions, 70 deletions
diff --git a/jstests/slow2/rollback4.js b/jstests/slow2/rollback4.js
deleted file mode 100644
index 95a6ed712b3..00000000000
--- a/jstests/slow2/rollback4.js
+++ /dev/null
@@ -1,70 +0,0 @@
-// Test a large rollback SERVER-2737
-//
-// This test is disabled on ephemeral storage engines, because it stops one of the data bearing
-// nodes and as such the data would be lost.
-// @tags: [requires_persistence]
-(function() {
-'use strict';
-
-var replTest = new ReplSetTest({ name: 'unicomplex',
- nodes: 3,
- oplogSize: 2000
- });
-var nodes = replTest.nodeList();
-
-var conns = replTest.startSet();
-var r = replTest.initiate({ "_id": "unicomplex",
- "settings": {
- "heartbeatTimeoutSecs":30
- },
- "members": [
- { "_id": 0, "host": nodes[0], priority: 2 },
- { "_id": 1, "host": nodes[1] },
- { "_id": 2, "host": nodes[2], arbiterOnly: true}]
- }, 'replSetInitiate', 600000);
-
-replTest.waitForState(replTest.nodes[0], ReplSetTest.State.PRIMARY, 60 * 1000);
-// Make sure we have a master
-var master = replTest.getPrimary();
-var b_conn = conns[1];
-b_conn.setSlaveOk();
-var B = b_conn.getDB("admin");
-
-// Make sure we have an arbiter
-replTest.waitForState(conns[2], ReplSetTest.State.ARBITER, 10000);
-
-// Wait for initial replication
-replTest.awaitReplication();
-
-// Insert into master
-var big = { b:new Array( 1000 ).toString() };
-var bulk = master.getDB('db').c.initializeUnorderedBulkOp();
-for( var i = 0; i < 1000000; ++i ) {
- bulk.insert( big );
-}
-assert.writeOK(bulk.execute());
-
-// Stop master
-replTest.stop( 0 );
-
-// Wait for slave to take over
-// This can take a while if the secondary has queued up many writes in its
-// buffer, since it needs to flush those out before it can assume the primaryship.
-//
-// In the legacy replication implementation (through 2.7.7), this waiting takes place before the
-// node reports that it is primary, while in the refactored implementation (2.7.8+) it takes place
-// after the node reports that it is primary via heartbeats, but before ismaster indicates that the
-// node will accept writes.
-replTest.waitForState(conns[1], ReplSetTest.State.PRIMARY, 5 * 60 * 1000);
-master = replTest.getPrimary(5 * 60 * 1000);
-
-// Save to new master, forcing rollback of old master
-master.getDB( 'db' ).c.save( big );
-
-// Restart old master
-replTest.restart( 0 );
-// Wait five minutes to ensure there is enough time for rollback
-replTest.awaitSecondaryNodes(5*60*1000);
-replTest.awaitReplication(5*60*1000);
-
-})();