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

Make ShardCollectionType not use strict parsing

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.9.0
    • Affects Version/s: None
    • Component/s: Sharding
    • Fully Compatible
    • Sharding 2020-11-02, Sharding 2020-11-16, Sharding 2020-11-30

      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.

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

              Created:
              Updated:
              Resolved: