[SERVER-30213] createIndexes can implicitly create collections on shards without propagating the collection options Created: 18/Jul/17  Updated: 06/Dec/22  Resolved: 28/Jul/17

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: 2.0.9, 2.2.7, 2.4.14, 2.6.12, 3.0.15, 3.2.15, 3.4.6
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Esha Maharishi (Inactive) Assignee: [DO NOT USE] Backlog - Sharding Team
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-30344 prevent shards from implicitly creati... Closed
Assigned Teams:
Sharding
Operating System: ALL
Participants:

 Description   

On mongos, createIndexes is broadcast to all shards, rather than only shards that own data for the collection.

So, createIndexes can implicitly create collections on shards that don't own data for the collection. When this happens, the collection is implicitly created without the right collection options (collation, compression, etc).

This is a beginning-of-time bug:



 Comments   
Comment by Max Hirschhorn [ 21/Jul/17 ]

I think this ticket is a duplicate of the user-reported issue in SERVER-20659.

Generated at Thu Feb 08 04:23:03 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.