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

Should dropDatabase remove the views collection first to maintain the same oplog entry order for time-series namespace as dropCollection?

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None
    • Storage Execution
    • Execution Team 2023-01-23

    Description

      The dropCollection and dropDatabase cmds write oplog entries for time-series collections in different orders.

      dropCollection writes
      1) a view entry delete oplog entry and then
      2) a buckets drop oplog entry

      dropDatabase writes
      1) a buckets drop oplog entry and then
      2) removes the view entry by dropping the database-wide views collection

      Discussion on slack led to the thought that we tried to ensure an order, such that the buckets collection may remain without the view, but not the other way around. But there's uncertainty as to whether or not it matters.

      Attachments

        Activity

          People

            dianna.hohensee@mongodb.com Dianna Hohensee (Inactive)
            dianna.hohensee@mongodb.com Dianna Hohensee (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: