[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: |
|
||||||||
| 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: |