[SERVER-62437] Disallow createIndex implicit clustered collection creation Created: 07/Jan/22  Updated: 25/Jan/24  Resolved: 12/Jan/22

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

Type: Task Priority: Major - P3
Reporter: Haley Connelly Assignee: Haley Connelly
Resolution: Fixed Votes: 0
Labels: PM-2311-M2
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-85334 createClusteredInfoForNewCollection c... Closed
Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2022-01-24
Participants:

 Description   

Instead of supporting implicit collection creation (which is risky in any scenario) createIndex on an existing collection's cluster key with 'clustered' = true should be a no-op. Otherwise, throw if the collection does not already exist or already exists as clustered.



 Comments   
Comment by Githook User [ 11/Jan/22 ]

Author:

{'name': 'Haley Connelly', 'email': 'haley.connelly@mongodb.com', 'username': 'haleyConnelly'}

Message: SERVER-62437 Disallow createIndex implicit clustered collection creation
Branch: master
https://github.com/mongodb/mongo/commit/ab9e5b0df9c34b8b0c025c5050c4b56ed3d600b8

Generated at Thu Feb 08 05:55:08 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.