[SERVER-82067] Investigate `createdCollectionAutomatically` field from createIndexes command Created: 11/Oct/23 Updated: 07/Feb/24 |
|
| Status: | Backlog |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Allison Easton | Assignee: | Backlog - Catalog and Routing |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | PM-3364-Milestone-5, oldshardingemea | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Assigned Teams: |
Catalog and Routing
|
| Participants: |
| Description |
|
The createIndexes command returns a field called `createdCollectionAutomatically` which is set to true if the createIndexes command had to implicitly create the collection before creating the index. After the changes in In this ticket, we should investigate whether this field is still useful and whether it needs to be preserved. If it does, then we should add logic to the error handling in the mongos for commands to ensure that this field is added if the mongos implicitly created the collection. |