Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-70755

Reorganize IDL and feature flag code for analyze_shard_key

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 6.2.0-rc0
    • None
    • None
    • None
    • Fully Compatible
    • Sharding NYC 2022-10-31

    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.

      Attachments

        Activity

          People

            cheahuychou.mao@mongodb.com Cheahuychou Mao
            cheahuychou.mao@mongodb.com Cheahuychou Mao
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: