[SERVER-53255] Change config.chunks indexes on upgrade/downgrade Created: 07/Dec/20  Updated: 29/Oct/23  Resolved: 01/Feb/21

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

Type: Task Priority: Major - P3
Reporter: Jordi Serra Torrens Assignee: [DO NOT USE] Backlog - Sharding Team
Resolution: Fixed Votes: 0
Labels: PM-1965-Milestone-0-Metadata-Format
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Sharding
Backwards Compatibility: Fully Compatible
Participants:

 Description   

On FCV upgrade to 5.0, make changes to the indexes for config.chunks as to:

  • Create uuid-based indexes (uuid_1_min_1, uuid_1_shard_1_min_1, uuid_1_lastmod_1)
  • Drop nss-based indexes (ns_1_min_1, ns_1_shard_1_min_1, ns_1_lastmod_1)

On FCV downgrade from 5.0 to earlier:

  • Create the nss-based indexes
  • Drop the uuid-based indexes


 Comments   
Comment by Jordi Serra Torrens [ 01/Feb/21 ]

Done as part of SERVER-53105 because the index changes could only be done in conjunction with the metadata changes in that ticket.

https://github.com/mongodb/mongo/commit/522299492aa5a78339aa8ebb07e88e567ba125d7

Generated at Thu Feb 08 05:30:22 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.