Do not parse shardCollection request using shardsvrCreateCollection parser

XMLWordPrintableJSON

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

      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
              Reporter:
              Enrico Golfieri
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: