[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 SERVER-80372, this field will not be set to true outside of direct connections because implicit collection creation is being handled by the mongos rather than the shard and so the shard is unaware of the implicit creation.

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.


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