[SERVER-70755] Reorganize IDL and feature flag code for analyze_shard_key Created: 21/Oct/22  Updated: 29/Oct/23  Resolved: 21/Oct/22

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

Type: Task Priority: Major - P3
Reporter: Cheahuychou Mao Assignee: Cheahuychou Mao
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Sharding NYC 2022-10-31
Participants:

 Description   
  • Move the files with common IDL structs and enums into a new library. So that future code (e.g. SERVER-70754, SERVER-70473, SERVER-70753) can references them from the read and write paths.
  • Make all the IDL structs have strict: false. The analyzeShardKey command currently specifies strict: true which is bound to lead to upgrade/downgrade issues in the future.
  • Add helpers for checking the feature flag both without and with ignoring the FCV to avoid having a verbose check (e.g. here) every where the analyze_shard_key code is used.


 Comments   
Comment by Githook User [ 21/Oct/22 ]

Author:

{'name': 'Cheahuychou Mao', 'email': 'mao.cheahuychou@gmail.com', 'username': 'cheahuychou'}

Message: SERVER-70755 Reorganize IDL and feature flag code for analyze_shard_key
Branch: master
https://github.com/mongodb/mongo/commit/7664638d42f73bd0ccf855846e15269af5b24e68

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