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

Make ShardCollectionType not use strict parsing

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.9.0
    • None
    • Sharding
    • Fully Compatible
    • Sharding 2020-11-02, Sharding 2020-11-16, Sharding 2020-11-30

    Description

      Currently, the IDL parser for ShardCollectionType doesn't specify {strict:false}, which means it explicitly performs strict parsing. This makes it impossible to add new fields to that structure.

      As part of this ticket we should do the following:

      • Add {strict:false}
      • Add an FCV 5.0 -> 4.4 downgrade step on the shards, which clears any newly added fields (e.g., SERVER-50027) from config.cache.collections so that 4.4 binaries can parse them.

      Attachments

        Activity

          People

            sergi.mateo-bellido@mongodb.com Sergi Mateo Bellido
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: