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

Do not parse shardCollection request using shardsvrCreateCollection parser

    • Catalog and Routing
    • Fully Compatible
    • ALL
    • v8.0
    • CAR Team 2024-09-30
    • 0

      After SERVER-81188 a shardCollection request is parsed using shardsvrCreateCollection parser. Considering shardsvrCreateCollection has a bigger set of fields  compared to shardCollection (as it includes the fields of the create command) the user could unintentionally set unsupported fields that belong to the create command. The consequence are that if the collection does not exists yet, we might allow a creation of an invalid sharded collection (like a capped sharded collection)

       

            Assignee:
            enrico.golfieri@mongodb.com Enrico Golfieri
            Reporter:
            enrico.golfieri@mongodb.com Enrico Golfieri
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: