[SERVER-32173] Add deprecation warning to "snapshot" option on queries Created: 05/Dec/17  Updated: 30/Oct/23  Resolved: 12/Dec/17

Status: Closed
Project: Core Server
Component/s: Querying
Affects Version/s: 3.6.0
Fix Version/s: 3.6.1, 3.7.1

Type: Task Priority: Major - P3
Reporter: Asya Kamsky Assignee: David Storch
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
is depended on by SERVER-32174 Remove old snapshot query option Closed
Documented
is documented by DOCS-11201 Docs for SERVER-32173: Add deprecatio... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v3.6
Sprint: Query 2017-12-18
Participants:
Case:

 Description   

The old snapshot option is being deprecated, need to add warning to the logs.



 Comments   
Comment by Githook User [ 12/Dec/17 ]

Author:

{'name': 'David Storch', 'email': 'david.storch@10gen.com', 'username': 'dstorch'}

Message: SERVER-32173 Occasionally log a deprecation warning when the snapshot find command option is used.

The snapshot option simply forces a COLLSCAN plan (or forces
an IXSCAN plan on the _id index when using the MMAPv1
storage engine). It does not provide point-in-time read
semantics. Users who rely on the snapshot option to force a
particular query plan should migrate their applications to
issue a hint instead.

(cherry picked from commit 4535fb662ff8db23737765ee0f8af68aa8536c24)
Branch: v3.6
https://github.com/mongodb/mongo/commit/6657ad119c171eeb3aa8e8a0a120b9723c0c7d96

Comment by Githook User [ 12/Dec/17 ]

Author:

{'name': 'David Storch', 'email': 'david.storch@10gen.com', 'username': 'dstorch'}

Message: SERVER-32173 Occasionally log a deprecation warning when the snapshot find command option is used.

The snapshot option simply forces a COLLSCAN plan (or forces
an IXSCAN plan on the _id index when using the MMAPv1
storage engine). It does not provide point-in-time read
semantics. Users who rely on the snapshot option to force a
particular query plan should migrate their applications to
issue a hint instead.
Branch: master
https://github.com/mongodb/mongo/commit/4535fb662ff8db23737765ee0f8af68aa8536c24

Generated at Thu Feb 08 04:29:25 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.