[SERVER-48028] Audit which commands allow snapshot reads outside transactions Created: 07/May/20  Updated: 29/Oct/23  Resolved: 13/May/20

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 4.7.0

Type: Task Priority: Major - P3
Reporter: A. Jesse Jiryu Davis Assignee: Lingzhi Deng
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by SERVER-47847 Ban snapshot "count" outside transact... Closed
is duplicated by SERVER-47850 Ban snapshot "geoSearch" outside tran... Closed
Backwards Compatibility: Fully Compatible
Sprint: Repl 2020-05-18
Participants:

 Description   

Review all commands on mongod and mongos. Only find, aggregate, and distinct (on non-sharded collections) should permit readConcern level snapshot outside multi-document transactions.



 Comments   
Comment by Lingzhi Deng [ 13/May/20 ]

This test is a good example of what commands are allowed in snapshot reads outside of transactions (plus SERVER-47996).

So to sum up - commands allowed in non-transaction snapshot reads are:

  • find
  • aggregate
  • distinct (on non-sharded collections)
Comment by Githook User [ 13/May/20 ]

Author:

{'name': 'Lingzhi Deng', 'email': 'lingzhi.deng@mongodb.com', 'username': 'ldennis'}

Message: SERVER-48028: Ban commands not allowed in snapshot outside of transactions
Branch: master
https://github.com/mongodb/mongo/commit/ce22715f281d28112305d58739f8c86f69d9b646

Comment by Githook User [ 13/May/20 ]

Author:

{'name': 'Lingzhi Deng', 'email': 'lingzhi.deng@mongodb.com', 'username': 'ldennis'}

Message: SERVER-48028: Ban commands not allowed in snapshot outside of transactions
Branch: master
https://github.com/mongodb/mongo/commit/ce22715f281d28112305d58739f8c86f69d9b646

Generated at Thu Feb 08 05:15:55 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.