Commit Graph

34 Commits

Author SHA1 Message Date
Robert Guo
761a96d3fc SERVER-27854 initiate replicasets faster in resmoke.py 2017-03-14 13:28:29 -04:00
Spencer Jackson
957549cd11 SERVER-27570: Enforce stricter checks on top level command BSON objects 2017-03-08 09:28:29 -05:00
Max Hirschhorn
07f5d15330 SERVER-27285 Run jsCore tests while periodically killing secondaries.
Adds a new core_small_oplog_rs_kill_secondaries.yml suite that after
running tests for a certain period of time (defaults to 30 seconds),
resmoke.py will send a SIGKILL to all of the replica set's secondaries.
Each node is then restarted individually with the primary disabled to
verify it reaches the SECONDARY state within 5 minutes of starting up.
2017-01-30 20:33:17 -05:00
Judah Schvimer
9710251a20 SERVER-27551 added retries to replSetInitiate call in python test fixture 2017-01-24 17:27:52 -05:00
Andy Schwerin
cdc7af4c6d SERVER-27490 Stop consulting storage engine isDurable flag in ReplicationCoordinatorImpl
... and simplify ReplCoordTestFixture

ReplicationCoordinatorImpl consults the storage engine's isDurable flag for two purposes:

1. To choose whether to present the durable or applied optime when standing for
election in pv1

2. To decide how to interpret w:majority without an explicit j field when
waiting for write concern.

In the first case, it is unnecessary to choose which optime to apply based on
the isDurable flag. It is always safe and correct to present the applied optime,
because if the node presenting it wins election, it will attempt to commit that
applied optime. That means that voters may safely vote for that node.

In the second case, using the value of the local node's storage engine's
isDurable flag to adjust the meaning of w:majority is out of spec. Whether
w:majority writes wait for journaling is a function only of the
writeConcernMajorityJournalDefault flag when a write concern omits the "j"
field.

This patch removes the unnecessary consultation of the isDurable flag, and
uses the opportunity to simplify the constructor of
ReplicationCoordinatorImpl and its test fixture.
2017-01-07 15:08:22 -05:00
Spencer T Brody
ccc7e32094 SERVER-26754 Disallow read concern majority reads with protocol version 0.
This reverts commit 3349bcb22a from SERVER-26754
2016-12-07 10:59:09 -05:00
Spencer T Brody
3349bcb22a SERVER-26754 Allow readConcern majority reads with protocol version 0 2016-10-25 18:37:42 -04:00
Robert Guo
240a12e251 SERVER-26516 resmoke should wait for initsync node to be in SECONDARY state before running tests 2016-10-14 10:11:54 -04:00
Esha Maharishi
3daf1fb89b SERVER-25543 add shardsvr startup option for shards in ShardedClusterFixture 2016-08-10 15:53:04 -04:00
Judah Schvimer
43ab2d9e0b SERVER-25399 Disable chaining in initial sync static passthrough 2016-08-09 13:19:12 -04:00
Judah Schvimer
433ffe0574 SERVER-24538 Add small_oplog_rs_initsync_static passthrough to include periodic initial sync members 2016-07-19 09:44:37 -04:00
Mike Grundy
f18bb78b46 SERVER-24716 Remove the CheckReplDBHashDeprecated hook 2016-07-13 14:54:39 -04:00
Robert Guo
4c0336f5b0 SERVER-23226 port CheckReplDBHash hook to jS 2016-06-22 11:11:01 -04:00
Kaloian Manassiev
d900c3b855 SERVER-23733 Remove the mongos chunkSize startup option
This change removes the chunkSize startup option from mongos in place of
the 'chunksize' setting.
2016-06-02 13:39:33 +03:00
Scott Hernandez
f88e2487ba SERVER-22533: correct tests for writeConcern majority + journal behaviors 2016-03-27 11:45:02 -04:00
Robert Guo
3bf4d50da8 SERVER-22806 CheckReplDBHash hook should fsync first 2016-02-23 17:40:06 -05:00
Mike Grundy
a8c2e2c267 SERVER-21990 Deprecation warning from resmoke.py - replicaset.py insert is deprecated 2016-01-25 13:55:38 -05:00
Charlie Swanson
4d835254c6 SERVER-22200 Correct logic to mark a test as a failure. 2016-01-21 09:29:23 -05:00
Jonathan Abrahams
0964c60791 SERVER-21565 Support more than 7 nodes in a replica set in resmoke.py 2015-12-23 09:11:26 -05:00
Max Hirschhorn
f176586570 SERVER-21955 Fix issue with MasterSlaveFixture and CleanEveryN hook.
Avoid constructing new Fixture instances inside
MasterSlaveFixture.setup().
2015-12-21 12:35:23 -05:00
Eric Milkie
b314afeac8 Improve startup time for resmoke suites 2015-10-23 15:20:44 -04:00
Max Hirschhorn
06fcd75302 SERVER-20899 Fix issue with resmoke.py fixtures and CleanEveryN hook.
Avoid constructing new Fixture instances inside
ReplicaSetFixture.setup() and ShardedClusterFixture.setup().
2015-10-15 10:58:53 -04:00
Max Hirschhorn
cda9ac3ae9 SERVER-20892 Fix issue with resmoke.py not waiting for initial sync. 2015-10-13 11:04:22 -04:00
Mathias Stearn
5be08a1188 SERVER-20707 Add --enableMajorityReadConcern option 2015-10-08 12:06:52 -04:00
Charlie Swanson
ff6326e5ab SERVER-18273 Compute ranges of ports for each job in resmoke.py 2015-09-03 09:15:11 -04:00
Randolph Tan
86eddcdacd SERVER-19886 Make tests run config servers with 3 member replica sets 2015-08-14 11:21:41 -04:00
Adam Midvidy
2ec075a6d6 SERVER-19448 implement resmoke.py support for c++ integration tests 2015-08-11 13:50:17 -04:00
Spencer T Brody
efcbdfee6e SERVER-19731 SERVER-19524 Make resmoke.py properly set up replica set config servers 2015-08-08 11:29:38 -04:00
Randolph Tan
1cfa494116 SERVER-19390 Make config server read commands do read committed 2015-08-06 09:58:01 -04:00
Max Hirschhorn
8c8ee18403 SERVER-18756 Write all executions to the report.json file.
Makes it so that a link to the logs for every test that ran is present
in the sidebar of the Evergreen UI. Multiple entries will appear for
the same test file when --repeat is used.

This also fixes an issue where the number of tests skipped would be
incorrect if the same test file was included multiple times in the
"roots" key.
2015-06-22 20:18:10 -04:00
Charlie Swanson
c69ae21c3a SERVER-18617 resmoke.py should not error when tearing down fixtures which had not been set up 2015-05-22 15:01:38 -04:00
Max Hirschhorn
0ea58cb3bc SERVER-18599 Increase connection timeout in resmoke.py.
Change resmoke.py to wait up to 5 minutes for a mongod/mongos process
to start accepting connections. Waiting only 30 seconds for a
connection to be established is insufficient on some build variants in
Evergreen. This is likely due to file preallocation, disk speed, and
other resource factors.
2015-05-21 19:14:50 -04:00
Charlie Swanson
15a5fcc644 SERVER-18390 Check dbhash of all databases during small_oplog suites 2015-05-20 11:55:55 -04:00
Max Hirschhorn
424314f65e SERVER-1424 Rewrite smoke.py.
Split out the passthrough tests into separate suites. The MongoDB
deployment is started up by resmoke.py so that we can record the
success/failure of each individual test in MCI.

Added support for parallel execution of tests by dispatching to
multiple MongoDB deployments.

Added support for grouping different kinds of tests (e.g. C++ unit
tests, dbtests, and jstests) so that they can be run together. This
allows for customizability in specifying what tests to execute when
changes are made to a particular part of the code.
2015-05-08 14:49:42 -04:00