Commit Graph

920 Commits

Author SHA1 Message Date
Scott Hernandez
b7e9e964c6 SERVER-21795: Do not reschedule more than one liveness timeout callback at a time
(cherry picked from commit 5ab583935e)
2015-12-14 12:36:56 -05:00
Kaloian Manassiev
2cb657a2ae SERVER-21050 Fix broken replsetrestart1.js 2015-12-11 16:51:19 -05:00
Kaloian Manassiev
6745d91683 SERVER-21050 Introduce ReplSetTest.State enumeration everywhere
Makes all JS tests access the replica set member state from the class
itself instead of the object instance. Also removes some unused code.
2015-12-11 13:32:56 -05:00
Jonathan Abrahams
bb7e7fc215 SERVER-21164 Use throw instead of assert in rslib.js wait loop
(cherry picked from commit 8fef1b5e7a)
2015-12-11 11:42:26 -05:00
Benety Goh
71f40809ee SERVER-21248 get_replication_info_helper.js should not assume all insert ops will happen in the same second
(cherry picked from commit a4cb164174)
2015-12-10 13:37:33 -05:00
Benety Goh
2c20582a12 SERVER-21248 additional failover test cases per test plan
(cherry picked from commit b0a6137a79)
2015-12-10 13:37:33 -05:00
Benety Goh
f4fb80e4a9 SERVER-21248 added checks to election_timing.js to ensure failovers complete on time.
(cherry picked from commit 0d5338a32b)
2015-12-10 13:37:33 -05:00
Kaloian Manassiev
c078dc37a9 SERVER-21050 Cleanup ReplSetTest
This is just a cleanup work to hide some of the private state of
ReplSetTest so it is easier to encapsulate and add new logic. Also enables
strict mode.
2015-12-08 13:15:06 -05:00
matt dannenberg
7177f576c7 SERVER-21736 disable sync2.js in the replica_sets_legacy task 2015-12-02 08:15:59 -05:00
matt dannenberg
93521085a7 SERVER-21695 fix rollback_index.js 2015-11-30 05:43:08 -05:00
Scott Hernandez
bfbe3dd12e SERVER-21096: only record election win in PV1 2015-11-20 08:05:26 -05:00
Mathias Stearn
bbff16c4b1 SERVER-21483 Don't reorder capped inserts on secondaries 2015-11-19 19:00:44 -05:00
Charlie Swanson
047f82cdba SERVER-21384 Enable replica set suites for in-memory storage engines 2015-11-19 14:19:12 -05:00
Jonathan Abrahams
46d22dc70b SERVER-20873 Add separate key file using 644 permission 2015-11-19 11:06:58 -05:00
matt dannenberg
fdd0ce979f SERVER-21505 add extra wiggle room to server_status_metrics.js 2015-11-17 07:45:40 -05:00
Scott Hernandez
127c0661fe SERVER-21474 Remove stepdown_while_draining test and failpoint 2015-11-16 17:59:33 -05:00
Scott Hernandez
51133ea85e SERVER-21250: pushAll from network thread 2015-11-13 17:21:03 -05:00
Siyuan Zhou
937dabedda SERVER-21457 Disable two_nodes_priority_take_over.js 2015-11-13 15:37:36 -05:00
Spencer T Brody
f757a8bb46 SERVER-21236 Don't automatically add 'configsvr':true to replset config when loading it from disk if started with --configsvr 2015-11-12 15:15:12 -05:00
matt dannenberg
21acf19010 SERVER-21437 give the restarted node more time to catch up in resync_with_write_load.js 2015-11-12 09:51:56 -05:00
matt dannenberg
3da6ea86c2 SERVER-21438 check the node for changes in its sync source in maxSyncSourceLagSecs.js 2015-11-12 09:51:56 -05:00
matt dannenberg
fcb244132a SERVER-21406 add error message to assert.soon due to new timeout 2015-11-11 10:22:33 -05:00
Randolph Tan
065197c7d6 SERVER-21405 Add more context for shell error message "error doing query: failed" 2015-11-11 15:06:27 -05:00
matt dannenberg
41dd2ff951 SERVER-21406 extend timeout in rollback2.js when running in pv0 2015-11-11 05:36:16 -05:00
Eric Milkie
2ba6eb9c4b SERVER-21396 raise default electionTimeoutMillis to 10 seconds 2015-11-10 17:15:49 -05:00
Mathias Stearn
90bcb44cc6 SERVER-21140 clean up readConcern parsing validation
Now rejects unknown fields and uses ' rather than " in error messages.
2015-11-06 18:44:49 -05:00
Mike Grundy
0f1dd09400 SERVER-21337 Add awaitSecondaryNodes() in election_timing_test.js 2015-11-06 17:05:32 -05:00
Max Hirschhorn
ce3e47aed5 SERVER-19301 Expose new MongoBridge API for network partition testing.
Changes the existing architecture of having a mongobridge process for
each unidirection link between two mongod processes in a replica set to
having a single mongobridge process per node in the replica set. The
mongobridge process is able to distinguish between connections from
different hosts by using the "hostInfo" field in the initial isMaster
command request.
2015-11-06 13:40:59 -05:00
Eric Milkie
e8d5fd065f SERVER-21298 wait for SECONDARY state before calling count 2015-11-04 16:58:26 -05:00
Eric Milkie
ce9b498f3a SERVER-21292 update remove1.js to use newer testing paradigms 2015-11-04 16:45:22 -05:00
Mike Grundy
f3dea2d9ba SERVER-20402 Add election failover js tests 2015-11-03 17:14:08 -05:00
matt dannenberg
b25a1fb514 SERVER-21237 fix remove1.js to handle failover that occurs in pv0 2015-11-03 11:29:47 -05:00
matt dannenberg
42d0577042 SERVER-21237 fix ReplSetTest.prototype.awaitReplication to use getReplSetStatus rather than query the oplog directly 2015-11-02 14:29:21 -05:00
matt dannenberg
847c0f67ad SERVER-21129 wait for batch apply flush in a separate thread 2015-10-30 11:03:41 -04:00
Scott Hernandez
c155fe777a increase election timeout for drain.js 2015-10-23 13:45:07 -04:00
Benety Goh
95344b7d99 SERVER-20979 make test_command.js more stable by waiting for node 0 to become primary before running tests 2015-10-22 17:27:34 -04:00
Siyuan Zhou
017f66ab67 SERVER-21077 stepdown.js should wait for expected primary 2015-10-22 17:13:20 -04:00
Benety Goh
fb06c14476 SERVER-20979 added ReplicationCoordinator::waitForMemberState() and waitForDrainFinish()
also added subcommands to replSetTest to access these functions from JS tests
2015-10-21 21:43:50 -04:00
Scott Hernandez
9c8b686abe SERVER-20921: test for truncate on batch recovery 2015-10-20 15:10:35 -04:00
Benety Goh
469814c1c1 SERVER-20964 use failpoint instead of bridging to prevent secondary from catching with primary during step down 2015-10-16 10:45:01 -04:00
Misha Tyulenev
6adf88a277 SERVER-18194 command should not set slaveOk if ReadPreference == PrimaryOnly 2015-10-15 14:21:01 -04:00
Siyuan Zhou
bededc2f04 SERVER-20812 Tag vote request connection to skip closing it when relinquishing primary 2015-10-14 11:31:14 -04:00
Benety Goh
5eaf403f36 SERVER-20832 use fail point instead of bridging to control replication in stepdown_long_wait_time.js 2015-10-14 10:30:21 -04:00
Kaloian Manassiev
25b498934f SERVER-20646 Get rid of CommonErrorCodes
Replace all usages with the standard ErrorCodes enumeration.
2015-10-13 09:43:40 -04:00
Benety Goh
e99719a235 Revert "SERVER-20832 use fail point instead of bridging to control replication in stepdown_long_wait_time.js"
This reverts commit cd4a48a490.
2015-10-09 16:32:03 -04:00
matt dannenberg
d369d9552e SERVER-20722 fix tests that create configsvrs explicitly to pass journal as well 2015-10-09 09:49:38 -04:00
Benety Goh
cd4a48a490 SERVER-20832 use fail point instead of bridging to control replication in stepdown_long_wait_time.js 2015-10-09 14:22:14 -04:00
Mathias Stearn
5be08a1188 SERVER-20707 Add --enableMajorityReadConcern option 2015-10-08 12:06:52 -04:00
matt dannenberg
d545382023 SERVER-20822 make replsets/chaining_removal.js more robust by depending on fewer assumptions 2015-10-08 06:03:20 -04:00
Eric Milkie
5c4b2cb0f8 SERVER-20649 add slaveOk read test coverage for drain mode 2015-10-08 05:27:10 -04:00