Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-58170

Prohibit dropping system.views if timeseries collections are present

    XMLWordPrintableJSON

Details

    • Fully Compatible
    • v5.0
    • Execution Team 2021-09-20, Execution Team 2021-10-04

    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()
      > 
      

      Attachments

        Activity

          People

            reo.kimura@mongodb.com Reo Kimura (Inactive)
            kyle.suarez@mongodb.com Kyle Suarez
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: