[DOCS-12949] $snapshot appears to have been removed in server 4.0 without documentation Created: 09/Aug/19  Updated: 27/Oct/23  Resolved: 09/Aug/19

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: Oleg Pudeyev (Inactive) Assignee: Unassigned
Resolution: Works as Designed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to RUBY-1707 Test 3.6 driver against 4.0 servers Closed
Participants:
Days since reply: 4 years, 26 weeks, 6 days ago

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


Generated at Thu Feb 08 08:06:33 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.