[SERVER-32756] Preparation work to enable selection of new index format. Created: 18/Jan/18  Updated: 30/Oct/23  Resolved: 07/Feb/18

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: None
Fix Version/s: 3.7.1

Type: Improvement Priority: Major - P3
Reporter: Neha Khatri Assignee: Neha Khatri
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Storage 2018-02-12
Participants:

 Description   

A new unique index format will be introduced. To allow selection of this new format while creating a unique index, add a gating variable in MongoDB via a global conditional. Identify the places in code that do unique index work with WiredTiger and stub that code to deal with new format.
No need to plumb it through to a public configurable option.

Also add a new IndexDescriptor::IndexVersion flag kV2Unique, which will be set on index creation if the new index format is selected by enabling the gating variable.



 Comments   
Comment by Githook User [ 07/Feb/18 ]

Author:

{'email': 'neha.khatr@mongodb.com', 'name': 'nehakhatri5'}

Message: SERVER-32756 Enable selection of V2 format unique index

A new unique index format would get added in MongoDB4.0 to overcome the
anonmaly of duplicate keys in unique index on secondary instances. Enabled
selection of new V2 format unique index via a gating variable. The
IndexDescriptor::IndexVersion now has a new flag kV2Unique. The version in an
IndexDescriptor object can be either kV2 or kV2Unique. A version value kV2Unique
means a V2 format unique index would be created. In this commit all of the
V2 format unique index implemetation is a copy of V1(unique index) format. It
would change in future commits.
Branch: master
https://github.com/mongodb/mongo/commit/43fbd6a4fbac7d1630a62b3b471c9eeb3222b7e5

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