[SERVER-67955] Add getter for index version for the sharding role Created: 11/Jul/22  Updated: 29/Oct/23  Resolved: 25/Aug/22

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 6.2.0-rc0

Type: Task Priority: Major - P3
Reporter: Marcos José Grillo Ramirez Assignee: Marcos José Grillo Ramirez
Resolution: Fixed Votes: 0
Labels: PM-2583-Milestone-1
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Sharding EMEA 2022-07-25, Sharding EMEA 2022-08-08, Sharding EMEA 2022-08-22, Sharding EMEA 2022-09-05
Participants:

 Description   

Currently in order to obtain the collection metadata information in a shard role we use the collection metadata object which contains a chunk manager.

We access this through the collection sharding state, so, add a new getter to obtain the index version, which should follow the value written in disk in config.shard.collections and recovered on startup, similarly to how the recoverable critical section works.



 Comments   
Comment by Britt Snyman [ 01/Sep/22 ]

Replacing the 6.1.0-rc1 fixVersion with 6.2.0-rc0 since these tickets had commits to master that were merged after we branched for v6.1.

Comment by Marcos José Grillo Ramirez [ 25/Aug/22 ]

Author:

{'name': 'Marcos José Grillo Ramirez', 'email': 'marcos.grillo@mongodb.com', 'username': 'm4nti5'}

Message: SERVER-67955 Add indexVersion getter on the CSR and make it recoverable
Branch: master
https://github.com/10gen/mongo/commit/78b0c96a8643a4ec8cb45f8349aa41b3d86c25de

Generated at Thu Feb 08 06:09:29 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.