Commit Graph

22 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
Matt Broadstone 771dabd098 SERVER-81339 Convert ReplSetTest and ShardingTest to modules (#26332)
GitOrigin-RevId: 744aa110a53786b23c62ff53f87a1418b5991e8d
2024-08-20 22:00:49 +00:00
Pierlauro Sciarelli ce28e79ede SERVER-81293 Get rid of `ensurePrimaryShard` helper 2023-09-28 09:24:01 +00:00
Matt Broadstone a4f458fe4d SERVER-79735 Convert jstest corpus to use es modules 2023-08-06 20:48:04 +00:00
Jordi Serra Torrens f3617ccb88 SERVER-53105: Amend tests that target config.chunks by ns to target by ns or uuid depending on collection timestamp 2021-01-22 10:25:46 +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
jannaerin da1e0304e8 SERVER-32052 Update ShardingTest to default to starting shard servers as replica sets 2018-03-09 00:40:40 -05:00
samantharitter 953df5a1f0 SERVER-31184 Make sharding tests only consider chunks for collections they actually use 2017-10-10 17:58:36 -04:00
Hugh Han 9e478e4164 SERVER-14761 only allow NumberLong as split key in hashed shard patterns
When a shard uses a hashed key pattern, only NumberLong types may be used
as split keys.

A small bug in hash_basic.js regarding 'middle' syntax was also fixed.
Instead of 10000 to the document as a whole, 10000 is now added to the
actual number in the document.

A small bug in read_only_test.js regarding the shardColl(...) function
was also found. It was fixed to now do what I believe the author originally
intended it to do.
2017-07-13 13:45:20 -04:00
Kaloian Manassiev 8fc79125bb SERVER-23704 Make shard_keycount.js invoke the anonymous test function 2016-04-14 17:58:36 -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 fb46f01127 SERVER-22341 fix jslint errors in jstests/sharding with eslint --fix 2016-02-09 14:46:30 -05:00
Jonathan Abrahams 5f4c54029d SERVER-21894 Remove unused 'hashed' resmoke.py tags from JS tests 2015-12-30 14:55:20 -05:00
Kaloian Manassiev 706ac90265 SERVER-21186 Make all sharding tests use default verbosity of 1
The default ShardingTest verbosity is currently zero, but we have many
tests, which bump it to 1 and even higher.

Since verbosity level of 0 is sometimes insufficient for investigating
transient failures, this change makes the default to be 1 and removes all
places, which explicitly make it 1 or higher.
2015-11-11 11:01:18 -05:00
Randolph Tan 280fbae904 SERVER-18044 Make sharding test explicitly set primary shards for databases 2015-05-15 10:11:31 -04:00
Greg Studer e88273ac94 SERVER-1424 (re)smoke tag parsing and new test library, v0
Includes:
- Smoke.py options for filtering by jstest tags
- New resmoke.py test utility in v0 alpha
- Lots of example resmoke configurations
- SCons integration for unittests
- Sample tagged jstests
2014-09-18 14:37:45 -04:00
Greg Studer 4677734e7a Revert "SERVER-1424 (re)smoke tag parsing and new test library, v0"
This reverts commit fac5571f67.
2014-09-15 19:42:10 -04:00
Greg Studer fac5571f67 SERVER-1424 (re)smoke tag parsing and new test library, v0
Includes:
- Smoke.py options for filtering by jstest tags
- New resmoke.py test utility in v0 alpha
- Lots of example resmoke configurations
- SCons integration for unittests
- Sample tagged jstests
2014-09-15 19:05:15 -04:00
Randolph Tan ec176dd577 SERVER-10232 better migration stats to detect TO-side readiness
Undo temporarly band aids by SERVER-11122 and SERVER-11301
2013-12-02 17:45:24 -05:00
Benety Goh 5bdf45f7e8 SERVER-11122 wrap move chunk admin command in a retry loop to handle case when destination shard is not ready 2013-10-10 10:09:56 -04:00
Randolph Tan 0a590e4208 SERVER-8187 Usability issues with splitting + hashed shard keys
Added new option for splitting keys on a cluster using hashed shard keys.
2013-02-01 15:16:47 -05:00