Commit Graph

10 Commits

Author SHA1 Message Date
Jack Mulrow
8817328f87 SERVER-32064 Requests from the shell should use an implicit session by default 2018-06-13 11:43:45 -04:00
jannaerin
da1e0304e8 SERVER-32052 Update ShardingTest to default to starting shard servers as replica sets 2018-03-09 00:40:40 -05:00
Sulabh Mahajan
86c02f1c78 SERVER-32505 Create mobile SE evergreen variant - Linux 2018-01-15 13:06:00 +11:00
Andrew Morrow
2fac57f282 SERVER-29000 Remove the miniwebserver and derivatives 2017-04-27 19:55:38 -04: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
Mark Benvenuto
6dcdd23dd3 SERVER-23971 Clang-Format code 2016-05-28 17:55:12 -04:00
Jonathan Abrahams
4ae691e8ed SERVER-22468 Format JS code with approved style in jstests/ 2016-03-09 12:18:14 -05:00
Mike Grundy
c070452eed SERVER-22341 fix jslint errors in jstests/auth with eslint --fix 2016-02-05 15:00:49 -05:00
Amalia Hawkins
1b4b52a9d4 SERVER-12621 narrow the localhost exception when auth is enabled 2014-05-22 20:29:39 -04:00
Spencer T Brody
c7cfb2a6fa Port tests from QA-362 into server jstests 2014-04-03 13:07:58 -04:00