[SERVER-58170] Prohibit dropping system.views if timeseries collections are present Created: 30/Jun/21  Updated: 15/Dec/23  Resolved: 24/Sep/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 5.0.0-rc6
Fix Version/s: 5.0.4, 5.1.0-rc0

Type: Task Priority: Major - P3
Reporter: Kyle Suarez Assignee: Reo Kimura (Inactive)
Resolution: Fixed Votes: 0
Labels: neweng, read-only-views
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Problem/Incident
causes SERVER-83874 Move primary operation doesn't drop d... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v5.0
Sprint: Execution Team 2021-09-20, Execution Team 2021-10-04
Participants:

 Description   

In the design for timeseries, we've said that we would prohibit drops of system.views if timeseries collections are present, but that does not appear to be implemented in the 5.0 rc series.

> db.runCommand({create: "ts", timeseries: {timeField: "time"}})
{ "ok" : 1 }
> db.system.views.find()
{ "_id" : "test.ts", "viewOn" : "system.buckets.ts", "pipeline" : [ { "$_internalUnpackBucket" : { "timeField" : "time", "bucketMaxSpanSeconds" : 3600, "exclude" : [ ] } } ] }
> db.system.views.drop()
true
> db.system.views.find()
> 



 Comments   
Comment by Vivian Ge (Inactive) [ 06/Oct/21 ]

Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it’s been triggered. For more active release information, please keep an eye on #server-release. Thank you!

Comment by Githook User [ 05/Oct/21 ]

Author:

{'name': 'Reo Kimura', 'email': 'reo.kimura@mongodb.com', 'username': 'rkimura21'}

Message: SERVER-58170 Prohibit dropping system.views if timeseries collections are present

(cherry picked from commit 2eff178ab31e80a4842b9b2c8d967540c27c3fbc)
Branch: v5.0
https://github.com/mongodb/mongo/commit/f4f8bae69ec3fd3b153d5a347317b36c43c3c13e

Comment by Githook User [ 24/Sep/21 ]

Author:

{'name': 'Reo Kimura', 'email': 'reo.kimura@mongodb.com', 'username': 'rkimura21'}

Message: SERVER-58170 Prohibit dropping system.views if timeseries collections are present
Branch: master
https://github.com/mongodb/mongo/commit/2eff178ab31e80a4842b9b2c8d967540c27c3fbc

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