-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
Labels:None
Documentation Request Summary:
This change causes the server to log the following warning message:
The snapshot option is deprecated. See http://dochub.mongodb.org/core/snapshot-deprecation
This dochub link currently points to https://docs.mongodb.com/manual/release-notes/3.6-compatibility/#general-compatibility-changes. It should be changed to point specifically to a note about snapshot's deprecation.
As part of this note, we should explain how users should migrate their application off the deprecated option. Those users who are on MMAPv1 should instead issue a hint on the _id index. Users on other storage engines should issue a $natural hint. Under the hood, snapshot was simply implemented as one of these two hints, which results in a plan that will never return the same document twice. Therefore, issuing a hint directly should achieve the same effect.
This option is being deprecated because it never offered true snapshot isolation.
Engineering Ticket Description:
The old snapshot option is being deprecated, need to add warning to the logs.
- documents
-
SERVER-32173 Add deprecation warning to "snapshot" option on queries
- Closed