[SERVER-67676] Disallow manually creating a system.buckets.x collection Created: 29/Jun/22  Updated: 05/Dec/22  Resolved: 24/Oct/22

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

Type: Task Priority: Major - P3
Reporter: Jennifer Peshansky (Inactive) Assignee: Backlog - Query Execution
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-61589 Disallow users from creating collecti... Closed
Assigned Teams:
Query Execution
Participants:
Story Points: 3

 Description   

If a user manually creates a system.buckets.x collection, change streams has no way of distinguishing between this and a genuine buckets collection automatically created by a timeseries view.

Since we are implementing special handling for time series collections, this special handling will affect any system.buckets.x collections the user may have created, and result in incorrect change streams. We must prevent this case by ensuring this type of collection cannot exist.

SERVER-63126 disallowed creating a view on system.buckets. Now we need to disallow manually creating any system.buckets.x collection.

We also need to consider the case where there is already an existing system.buckets.x collection, manually created before this ticket was implemented. We should check for this situation and provide the user with a useful, actionable error message.


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