Commit Graph

256 Commits

Author SHA1 Message Date
Spencer Jackson
47da0b53f9 SERVER-26952: Cache SCRAM-SHA-1 ClientKey 2017-02-02 17:48:07 -05:00
Tess Avitabile
7291530810 SERVER-26676 Remove collection info massage from multiversion suite collection validation 2017-01-25 13:14:43 -05:00
Jack Mulrow
84ca21e55e SERVER-20844 Start ReplSetTests faster wrt initial election 2017-01-23 13:25:30 -05:00
Dianna Hohensee
a3ff4e388f SERVER-24163 remove waitForCSRSSecondaries:false from multiversion tests, which was only needed for 3.2 compatibility 2017-01-11 12:21:37 -05:00
Dianna Hohensee
c7023b7941 SERVER-26828 unblacklist 3.2 incompatibilities in sharding_last_stable_mongos_and_mixed_shards suite 2017-01-04 19:13:37 -05:00
Robert Guo
b2bca3948f SERVER-27107 remove or modify tests unrelated to the 3.4->3.6 upgrade path 2016-12-14 11:26:18 -05:00
Robert Guo
b80bd55370 SERVER-27107 Update 'last-stable' MongoRunner alias to 3.4 in master branch 2016-12-05 12:12:20 -05:00
Eric Milkie
eda82cb72e SERVER-23514 remove code and tests from SERVER-23299 2016-11-21 08:44:57 -05:00
Mathias Stearn
39d650faa5 SERVER-26716 Fix crash after 3.2->3.4->3.2 up/downgrade
This was only an issue for nodes that had never done writes as a secondary
and therefore hadn't written a minValid point.
2016-11-15 12:24:54 -05:00
Charlie Swanson
fd8c45213b SERVER-26966 Remove dead legacy find/getMore up and downconversion 2016-11-11 10:10:06 -05:00
Tess Avitabile
ec4af63e5d SERVER-26982 Add test coverage for _id index version and chunk migration 2016-11-10 13:18:33 -05:00
Benety Goh
d4a7ae5740 SERVER-26934 removed hardcoded ReplSetTest.awaitReplication timeouts from JS tests 2016-11-07 15:54:09 -05:00
Tess Avitabile
e923952dd2 SERVER-26515 Create collection with v=2 index should include full index spec in oplog 2016-10-28 19:07:00 -04:00
Marko Vojvodic
56acb9e62c SERVER-26635 Write a multiversion test which upgrades through several versions 2016-10-27 13:02:32 -04:00
David Storch
315f92405c SERVER-26659 only use stricter key pattern validation for v:2 or new index builds
This now follows the same rules which we will use in 3.4 for
rejecting unknown top-level options in the index spec. These
rules ensure a smooth upgrade, even in the presence of bad
index metadata produced on an older server version.
2016-10-20 15:44:40 -04:00
Tess Avitabile
1a940972e9 SERVER-26513 listCollections output should include _id index spec as idIndex 2016-10-18 16:56:19 -04:00
Randolph Tan
26cb6b14f4 SERVER-26610 add maxTimeMS to setFeatureCompatibilityVersion call in set_feature_compatibility_version.js 2016-10-17 13:31:43 -04:00
Maria van Keulen
fadd01e32d SERVER-26265 Add tests for 3.2 mongos joining 3.4 clusters 2016-10-10 11:36:10 -04:00
Max Hirschhorn
5221b639ad SERVER-26453 Bump current version in verify_versions_test.js to 3.4. 2016-10-04 16:22:42 -04:00
Maria van Keulen
aa9ea14a57 SERVER-26156 Add migration tests for collections with V2 indexes 2016-09-26 15:06:25 -04:00
Judah Schvimer
da47772085 SERVER-26322 Use reconfig helper in multiversion tests 2016-09-26 14:38:36 -04:00
David Storch
2009fc9424 SERVER-26260 make tests await replication of FCV before downgrade 2016-09-23 16:45:43 -04:00
Max Hirschhorn
96a21e63bf SERVER-25725 Kill 3.2 secondaries when featureCompatibilityVersion=3.4.
Creates a v=2 index on the "admin.system.version" collection when the
featureCompatibilityVersion is set to 3.4. The index version of this
index is returned as a decimal value in the "listIndexes" command
response in order to prevent 3.2 secondaries from performing initial
sync from a 3.4 mongod with featureCompatibilityVersion=3.4.
2016-09-20 19:07:55 -04:00
Max Hirschhorn
fb992867f9 SERVER-24564 Remove test cases that mix 3.0 and latest in a replica set. 2016-09-20 19:07:54 -04:00
Nathan Myers
1d5eff62fc SERVER-24792 verify new mongos -> old mongod fails 2016-09-20 16:50:54 -04:00
Judah Schvimer
3117e5134a Revert "SERVER-24792 verify new mongos -> old mongod fails"
This reverts commit dc405959d7.
2016-09-20 13:57:56 -04:00
Nathan Myers
dc405959d7 SERVER-24792 verify new mongos -> old mongod fails 2016-09-20 11:55:28 -04:00
Max Hirschhorn
8302d0735b SERVER-24033 Write full index spec in oplog entry for index creation.
This ensures that the index version (aka the "v" field) is always
present in the oplog entry when creating indexes on a 3.4 primary.
We can therefore assume that if the "v" field isn't present in the
corresponding oplog entry, then a v=1 index should be built.

Changes MultiBlockIndex::init() to return the index specifications
that were actually created.

The "repairDatabase", "compact", "copydb", and "cloneCollection"
commands no longer automatically upgrade the index version to the
current default version. Instead, the only command that does so is
the "reIndex" command.
2016-09-14 20:49:17 -04:00
David Storch
63582d3c29 SERVER-26087 make config server only set its own featureCompatibilityVersion if all shards report success 2016-09-14 14:16:43 -04:00
Max Hirschhorn
071065a296 SERVER-25156 Add support for building v=2 indexes.
We use index version v=2 as the default index version when the
featureCompatibilityVersion is 3.4, and we use index version v=1 as the
default index version when the featureCompatibilityVersion is 3.2.

The "collation" index option can only be used with v=2 indexes.
2016-09-07 17:37:46 -04:00
Spencer T Brody
8081859b78 SERVER-22666 Test that basic sharded cluster upgrade procedure properly makes all shards sharding aware 2016-09-06 15:36:45 -04:00
Spencer T Brody
07d959bfce SERVER-22666 Cleanup jstests/multiversion/upgrade_cluster.js 2016-09-06 15:36:45 -04:00
Tess Avitabile
f288ea86db SERVER-25159 Default BSON validation version should depend on admin.system.version 2016-09-02 15:10:30 -04:00
Jonathan Abrahams
657074a4ea SERVER-24248 Run multiversion tests with different storage engines
This reverts commit 45d31b50bd.
2016-08-25 09:40:16 -04:00
Tess Avitabile
ac055bb958 SERVER-25739 set_feature_compatibility_version.js should not use 3.4 mongos to add 3.2 shard 2016-08-24 15:55:43 -04:00
Spencer T Brody
96d6fcb0c1 SERVER-25514 Prevent a v3.4 mongos from being used to add a v3.2 shard 2016-08-22 15:18:59 -04:00
Tess Avitabile
dc4a079760 SERVER-25155 Create setFeatureCompatibilityVersion command 2016-08-19 17:57:33 -04:00
Mark Benvenuto
78c06c7e34 SERVER-25393 Disallow mongos making connections to older versions 2016-08-19 11:43:31 -04:00
Jonathan Abrahams
45d31b50bd Revert "SERVER-24248 Run multiversion tests with different storage engines"
This reverts commit 2f02928e57.
2016-08-18 16:44:57 -04:00
Jonathan Abrahams
2f02928e57 SERVER-24248 Run multiversion tests with different storage engines 2016-08-18 08:52:57 -04:00
Randolph Tan
e14a61c789 SERVER-22665 Separate mixed version test logic to multiVersion suite
for shard aware js tests
2016-08-11 13:34:24 -04:00
James Wahlin
97c43492de SERVER-24506 listCollections support for views 2016-07-19 10:10:43 -04:00
Judah Schvimer
abf863ca0f SERVER-24718 wait for nodes to agree on primary in tags.js 2016-06-27 15:49:17 -04:00
Kaloian Manassiev
b6abb408c1 SERVER-24603 Re-enable auth tests in 'sharding_last_stable_mongos'
This change makes auth tests with 3.2 mongos, which need to control the
balancer state to go through a special control mongos instance running
version 3.4.

This reverts commit bfde0ecb1c.
2016-06-20 22:15:57 -04:00
David Storch
5f812b5da3 SERVER-23761 on MMAPv1, set data file version bit for collation
The bit gets set when an index or collection with a collation is
created. This prevents downgrade for users who have indices or
collections with associated collations. Analogous to 8ca23764d4,
but for the MMAPv1 storage engine.
2016-06-16 15:52:22 -04:00
Kaloian Manassiev
4c98927f26 SERVER-22672 Move the sharding balancer to the CSRS primary
This change moves the sharding balancer to run on the primary of the CSRS
config server and removes it from the mongos instances.
2016-06-15 11:05:53 -04:00
David Storch
8ca23764d4 SERVER-23761 set NR feature bit for collation
This will ensure downgrade fails after creating collections or indices
with a non-simple collation.
2016-06-15 09:58:59 -04:00
Max Hirschhorn
418cd1ed69 SERVER-24095 Set feature bit for path-level multikey tracking.
If no feature has already been marked as in-use, then creating a new
index will also cause a feature document to be inserted into the
KVCatalog. Versions of MongoDB earlier than commit
f242be85e8 will fail to start up as a
result.
2016-05-31 13:31:34 -04:00
Mark Benvenuto
6dcdd23dd3 SERVER-23971 Clang-Format code 2016-05-28 17:55:12 -04:00
Randolph Tan
756d6ee26b SERVER-24087 Make sure config servers are caught up after ShardingTest starts up 2016-05-18 13:44:23 -04:00