[SERVER-83106] Do not parse shardCollection request using shardsvrCreateCollection parser Created: 10/Nov/23  Updated: 07/Feb/24

Status: Backlog
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Enrico Golfieri Assignee: Backlog - Catalog and Routing
Resolution: Unresolved Votes: 0
Labels: PM-3364-Milestone-5
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Catalog and Routing
Operating System: ALL
Participants:

 Description   

After SERVER-81188 a shardCollection request is parsed using shardsvrCreateCollection parser. This was done to ensure full compatibility between the 2 requests. However, any extra field not allowed in shardCollection could be propagated to shardsvrCreateCollection if the field is present in shardsvrCreateCollection

Make sure to:

  • parse the cmdObj using ShardCollection::parse
  • remove shardsvrCreateCollection::parse
  • set 1 by 1 every field in shardsvrCreateCollection using the corresponding setters.

Generated at Thu Feb 08 06:51:16 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.