[SERVER-25156] Create index version V2 Created: 19/Jul/16  Updated: 16/Dec/16  Resolved: 19/Sep/16

Status: Closed
Project: Core Server
Component/s: Index Maintenance, Querying
Affects Version/s: None
Fix Version/s: 3.3.14

Type: Task Priority: Major - P3
Reporter: Tess Avitabile (Inactive) Assignee: Max Hirschhorn
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-25155 Create setFeatureCompatibilityVersion... Closed
is depended on by SERVER-25725 Running {setFeatureCompatibilityVersi... Closed
is depended on by SERVER-26156 Additional tests for index version v=... Closed
Related
Backwards Compatibility: Major Change
Sprint: Query 2016-08-29, Query 2016-09-19
Participants:

 Description   

--Allow creation of V2 indexes.
--Disallow index collation if version < 2.
--Disallow keystring V1 if version < 2.
--Default index version is 2 if admin.system.version is at least 3.4, and 1 otherwise.
--Include index version in index creation oplog entry.
--When applying index creation oplog entry, if index version is missing, use V1.

Consider also disallowing explicit creating of V2 indexes if version in admin.system.version is < 3.4.



 Comments   
Comment by Max Hirschhorn [ 19/Sep/16 ]

Filed SERVER-26156 for the test cases in a sharded cluster that Tess called out.

Comment by Githook User [ 07/Sep/16 ]

Author:

{u'username': u'visemet', u'name': u'Max Hirschhorn', u'email': u'max.hirschhorn@mongodb.com'}

Message: 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.
Branch: master
https://github.com/mongodb/mongo/commit/071065a2969176ad2aa2ac9c3210e5fa9410cea6

Comment by Githook User [ 01/Sep/16 ]

Author:

{u'username': u'visemet', u'name': u'Max Hirschhorn', u'email': u'max.hirschhorn@mongodb.com'}

Message: SERVER-25156 Define a validateIndexSpec() helper function.

Consolidates and moves some of the option parsing in the "createIndexes"
command to its own library so that it can be unit tested.
Branch: master
https://github.com/mongodb/mongo/commit/159d4db49c2aa2ecfc988e25999ee780f53a5efd

Comment by Tess Avitabile (Inactive) [ 19/Jul/16 ]

Be sure to test index creation while setMinVersion is being run on the cluster, to make sure we don't get V2 indexes on some nodes and V1 on others.

Comment by Tess Avitabile (Inactive) [ 19/Jul/16 ]

Need to check that migrating a chunk that has a V2 index to a 3.2 shard will fail.

Generated at Thu Feb 08 04:08:25 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.