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

system.views is implicitly created with the wrong timestamp

    XMLWordPrintable

    Details

    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v4.0
    • Sprint:
      Storage NYC 2018-06-18
    • Linked BF Score:
      61

      Description

      Per Daniel Gottlieb:

      This seems to be a case of composing two separate write units of work into a big one. I believe the sequence for creating the first view on a database does:

      1. Begin a transaction
      2. Create the view (insert into _mdb_catalog, also creates an index on the view)
      3. Set timestamp 1
      4. Write creation into oplog with ts: 1
      5. Insert new view into collection
      6. Set timestamp 2
      7. Write insert into oplog with ts: 2
      8. Commit transaction

      The collection is implicitly created here in the greater WUOW. CRUD op implicit collection creation happens here in its own WUOW.

        Attachments

          Activity

            People

            Assignee:
            daniel.gottlieb Daniel Gottlieb
            Reporter:
            judah.schvimer Judah Schvimer
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: