Commit Graph

23 Commits

Author SHA1 Message Date
Steve McClure
1ffbc6c2e9 SERVER-109432: Autofix JS var usage to favor let (#40637)
GitOrigin-RevId: 9674b7db36a0f3f650d39c1e3fb2ad6ff2141cfb
2025-08-28 19:21:01 +00:00
Zac
591928c619 SERVER-108478 JS formatted by prettier and remove clang-format (#39656)
GitOrigin-RevId: 6c8f6aded47f260aa4f7c231b17dae3302cb1e04
2025-08-21 17:27:09 +00:00
kshitij
46fec6e0db SERVER-95434: Remove shardOptions from shardingtest.js. (#28068)
GitOrigin-RevId: 1a6e80f2083120e3ae09e8d57694e730f2375f94
2024-10-22 18:29:27 +00:00
Matt Broadstone
771dabd098 SERVER-81339 Convert ReplSetTest and ShardingTest to modules (#26332)
GitOrigin-RevId: 744aa110a53786b23c62ff53f87a1418b5991e8d
2024-08-20 22:00:49 +00:00
Jiawei Yang
d3ae1054b9 SERVER-89312 Fix jstests using wrong sec-read-after-majority-write (#21071)
GitOrigin-RevId: f8e57f52be4fbef6f1ba79f09aa882dc83667b0c
2024-04-12 16:43:08 +00:00
Jiawei Yang
30a5ef7f6c SERVER-87414 fix tests using wrong read after majority write assumption (#20034)
GitOrigin-RevId: 4b01fe8c48ea513acb38754b9d09c723a5cc35ec
2024-03-19 23:57:22 +00:00
Matt Broadstone
a4f458fe4d SERVER-79735 Convert jstest corpus to use es modules 2023-08-06 20:48:04 +00:00
Sara Golemon
e4032fe5c3 SERVER-57369 Disable concurrent authentication 2022-02-24 02:51:46 +00:00
Irina Yatsenko
911e585044 SERVER-57198 Remove getLastError calls from tests where it's easy to do so 2021-06-02 01:18:12 +00:00
XueruiFa
cd333ff3ea SERVER-53812: Fix awaitReplication in ReplSetTest with keyfile auth enabled 2021-02-18 18:57:37 +00:00
Jack Mulrow
682f0540c9 SERVER-43469 Remove TODOs listed for SERVER-35447 2020-04-30 20:59:56 +00:00
Cheahuychou Mao
67302fce7c SERVER-38875 Make tests start shards as replica sets instead of standalones after auth cluster time gossiping fix 2019-10-10 15:42:06 +00:00
clang-format-7.0.1
134a408395 SERVER-41772 Apply clang-format 7.0.1 to the codebase 2019-07-27 11:02:23 -04:00
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