[SERVER-28450] Implement shell support for causally consistent sessions Created: 23/Mar/17  Updated: 06/Dec/17  Resolved: 19/Apr/17

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 3.5.7

Type: Task Priority: Major - P3
Reporter: Misha Tyulenev Assignee: Misha Tyulenev
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-29690 MongoS initiated metadata refreshes n... Closed
Documented
Duplicate
is duplicated by SERVER-30409 Turn Causal Consistency on Closed
Backwards Compatibility: Fully Compatible
Sprint: Sharding 2017-04-17, Sharding 2017-05-08
Participants:

 Description   

Build a minimal viable implementation of causally consistent shell sessions that can be used for testing the causal consistency.
Notes:

  • the user session is based on the DB session.
  • the property of causal consistent reads belongs to the session and can be explicitly turned on /off by a user
  • if the consistent reads are "on" the DB the session or db object keep track of the
    • clusterTime
    • operationTime
  • db object modifies the requests (i.e commands) by adding the $logicalTime and readConsern: afterClusterTime: <currentIOperationTime>
  • there is a mongo shell parameter that allows to make the causal consistency default on the start so it can be used for creating passthrough tests that run existing integration
  • mongo can be started with a port or connection string. In all cases it may be possible to implement the logic in the dbclient or dbclient_rs (investigate)


 Comments   
Comment by Githook User [ 19/Apr/17 ]

Author:

{u'username': u'mikety', u'name': u'Misha Tyulenev', u'email': u'misha@mongodb.com'}

Message: SERVER-28450 add support for causal consistency to mongo shell
Branch: master
https://github.com/mongodb/mongo/commit/72f19039beebcb3e087dc1efbe6fac31526d2fd0

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