Reorganize IDL and feature flag code for analyze_shard_key

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 6.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Sharding NYC 2022-10-31
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      • 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.

            Assignee:
            Cheahuychou Mao
            Reporter:
            Cheahuychou Mao
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: