Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-12949

$snapshot appears to have been removed in server 4.0 without documentation

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Works as Designed
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • None
    • None

    Description

      Description

      This page documents $snapshot option: https://docs.mongodb.com/v3.2/reference/operator/meta/snapshot/

      It says $snapshot is deprecated in server 3.2. It appears that $snapshot is removed entirely in 4.0.

      While working on https://jira.mongodb.org/browse/RUBY-1707, running the tests against 4.0 server produces this error:

      [2019/08/07 16:04:59.228] # Mongo::Error::OperationFailure:
      [2019/08/07 16:04:59.228] # Failed to parse: { find: "test", filter: { _id:

      { $gt: 1 }

      }, comment: "test", hint:

      { _id: 1 }

      , max:

      { _id: 6 }

      , maxScan: 5000, maxTimeMS: 6000, min:

      { _id: 0 }

      , returnKey: false, showRecordId: false, snapshot: false, sort:

      { _id: 1 }

      , skip: 2, $db: "ruby-driver", $readPreference:

      { mode: "primaryPreferred" }

      , lsid:

      { id: UUID("09cfd55e-c67b-4d9c-a39c-7640330fd8f5") }

      }. Unrecognized field 'snapshot'. (9)

      Scope of changes

      Impact to Other Docs

      MVP (Work and Date)

      Resources (Scope or Design Docs, Invision, etc.)

      Attachments

        Activity

          People

            Unassigned Unassigned
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              4 years, 26 weeks, 6 days ago