Commit Graph

1217 Commits

Author SHA1 Message Date
Spencer T Brody
ae83937130 SERVER-21996 Wait for replication to all nodes before shutting down config server primary in test 2015-12-23 14:44:25 -05:00
Kaloian Manassiev
a7e6d919ec SERVER-21050 Continuous config server primary step down
This change adds a continuous primary stepdown capability to the
ReplicaSetTest and hooks it into ShardingTest.
2015-12-23 10:39:04 -05:00
Randolph Tan
06d1b22164 SERVER-21910 Use fullOptions instead of commandLine to restart server in min_optime_recovery.js 2015-12-22 15:44:08 -05:00
Dianna Hohensee
3663e004df SERVER-21382 fixing sharding migration to transfer only document deletions relevant to the chunk being migrated, not every deletion 2015-12-22 09:12:08 -05:00
Kaloian Manassiev
6bfa81cae0 SERVER-21978 move_primary_basic.js should always set a fixed primary shard 2015-12-21 16:17:29 -05:00
Kaloian Manassiev
e2e4c75844 SERVER-21050 Continuous config stepdown logging changes
This commit is part of the overall change to enable continuous config
server stepdown and it includes improvements to logging and test
validation. It does not actually enable the stepdown thread.
2015-12-21 15:20:12 -05:00
Jonathan Abrahams
df25ea8ff2 SERVER-21893 Fix dbHash result check for number of collections. 2015-12-21 10:45:38 -05:00
Jonathan Abrahams
6799884bb1 SERVER-13525 Remove assert.repeat(), since it never throws an exception and should not be used. 2015-12-15 23:14:27 -05:00
Randolph Tan
9f8d1f830e SERVER-21704 JS Test single_node_config_server_smoke has race condition 2015-12-15 16:10:35 -05:00
Misha Tyulenev
3e1a3872c9 SERVER-21706 error when mapReduce outputs to config or admin db 2015-12-14 19:20:08 -05:00
Randolph Tan
0499aee83f SERVER-21883 Remove _testDistLockWithSkew and _skewClockCommand 2015-12-14 15:57:11 -05:00
samantharitter
7c67e25f37 SERVER-21597 Fix connPoolStats to work with many NetworkInterfaces 2015-12-14 15:39:39 -05:00
Spencer T Brody
62f3810a0a SERVER-21076 Add jstest for mapReduce and aggregation properly handling shard versioning 2015-12-14 11:45:40 -05:00
Randolph Tan
eb83308150 SERVER-21871 Do not run min_optime_recovery.js on ephemeralForTest storageEngine 2015-12-14 10:13:48 -05:00
Kaloian Manassiev
f28df29ac8 SERVER-21848 CSRS catalog manager should not allow batch writes greater than 1 2015-12-11 13:23:52 -05:00
Kaloian Manassiev
20cd3a392e 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:21:22 -05:00
Misha Tyulenev
5c651b14fe SERVER-21136 add basic tests for enableSharding command 2015-12-10 16:50:41 -05:00
Misha Tyulenev
1bcf9c7e19 SERVER-21132 add basic tests for moveChunk command 2015-12-10 16:24:13 -05:00
Misha Tyulenev
a6e09d623c SERVER-21137 add basic tests for movePrimary command 2015-12-10 16:21:58 -05:00
Randolph Tan
ea6764dbe4 SERVER-21849 Fix timestamp compare in min_optime_recovery.js 2015-12-10 16:09:23 -05:00
Misha Tyulenev
9ba880ed3d SERVER-21133 add basic tests for mergeChunks 2015-12-10 15:16:47 -05:00
Misha Tyulenev
ea91373329 SERVER-21134 add basic tests for shardCollection command 2015-12-10 15:09:50 -05:00
Randolph Tan
2a39a1d5b1 SERVER-20824 Test for sharding state recovery 2015-12-10 10:21:00 -05:00
Randolph Tan
0ec5ef6940 SERVER-21135 Add more basic tests for sharded implicit database creation 2015-12-08 17:08:14 -05:00
Randolph Tan
96b181211f SERVER-21138 Add more basic tests for dropDatabase 2015-12-08 17:05:42 -05:00
Randolph Tan
e90ba97c1a SERVER-21139 Add more basic tests for drop collection 2015-12-08 17:00:52 -05:00
Jonathan Abrahams
9689f7e884 SERVER-21768 Remove the 'numCollections' field from dbHash's response 2015-12-08 14:08:13 -05:00
Kaloian Manassiev
3ed6635a5f 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:05:00 -05:00
Randolph Tan
79bdc9e040 SERVER-21586 Update comments on failing tests 2015-12-08 12:07:08 -05:00
Misha Tyulenev
6e545bce06 SERVER-21158 pull cleanupOrphaned tests from QA-326 2015-11-30 19:44:23 -05:00
Charlie Swanson
909b13f0ac SERVER-21384 Enable sharding suites on ephemeral storage engines 2015-11-30 10:34:20 -05:00
Kaloian Manassiev
5b3257d526 SERVER-21527 Cleanup usages of getShard for resolving host to shard 2015-11-19 20:20:14 -05:00
Jason Carey
c76b4ff9eb SERVER-21359 let JS registerOperation take nullptr
getPooledScope takes an operationContext* that can apparently be null,
make implscope robust in that case.
2015-11-19 16:12:14 -05:00
Kaloian Manassiev
078ca783b7 SERVER-21489 Fix broken passthrough suite 2015-11-19 11:56:42 -05:00
Randolph Tan
24fb61592a SERVER-21340 Add basic test for sharding server status 2015-11-19 09:30:56 -05:00
Kaloian Manassiev
68dfaba3e8 SERVER-21489 enableSharding should return error if sharding is already enabled 2015-11-18 18:25:52 -05:00
Spencer T Brody
9adaeed3b2 SERVER-21329 Disable moveParanoia by default 2015-11-18 13:04:56 -05:00
Spencer T Brody
6ff8f1cfff SERVER-21215 If the config servers are all down, retry sharding state initialization until they come back up 2015-11-18 11:57:21 -05:00
Randolph Tan
9f055d483c SERVER-21233 Sharding config servers should not be pinging the distributed lock 2015-11-17 17:50:47 -05:00
Kaloian Manassiev
a7a896f961 SERVER-21293 Use more appropriate name for a sharding test 2015-11-17 17:24:13 -05:00
Kaloian Manassiev
6c5d292463 SERVER-21293 Add network timeout to the query fetcher
The query fecther currently does not pass timeout and because of this if
the config server is black-holed a command may never complete.
2015-11-16 18:04:25 -05:00
Kamran Khan
15376bdb53 SERVER-20941 Update v8-specific code and comments in JS tests
The switch to SpiderMonkey invalidated some of the code and comments.
2015-11-13 12:32:15 -05:00
Spencer T Brody
1b8a8957dc SERVER-21435 Use a new shard instead of re-using an existing one in addshard5.js test 2015-11-12 17:39:12 -05:00
Jonathan Abrahams
7ab6e9aabb SERVER-21256 New sharding test suite configurations using mongo shell --readMode legacy 2015-11-12 16:43:49 -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
4ec5842d77 SERVER-21193 mongos claims that config db is empty on CSRS cluster
dbStats don't support readConcern since database metadata in the server are not synchronized with the snapshots. This makes the listDatabase command in mongos to send listDatabase instead with primaryPreferred and without the readConcern option.

This also changed the listDatabase behavior to not include the config or admin in the result if they don't actually exist.
2015-11-11 10:52:01 -05:00
Kaloian Manassiev
67b68b5f09 SERVER-21272 Make replica set monitor retry finding hosts
This change makes the replica set monitor retry more than once to find
hosts suitable for a given read preference and fail quickly if none of the
hosts for a given replica set can be reached.
2015-11-11 10:16:33 -05:00
Randolph Tan
628cac98ba SERVER-21222 minOpTime recovery should only be written if the config server is replica set 2015-11-10 13:14:56 -05:00
samantharitter
6dac61e3f9 SERVER-21365 Fix expectations in conn_pool_stats.js 2015-11-09 18:00:23 -05:00
Max Hirschhorn
78d3e85ae6 SERVER-20867 Integrate mongobridge into ShardingTest. 2015-11-09 09:56:21 -05:00