Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-28450

Implement shell support for causally consistent sessions

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.5.7
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Fully Compatible
    • Sharding 2017-04-17, Sharding 2017-05-08

      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)

            Assignee:
            misha.tyulenev@mongodb.com Misha Tyulenev (Inactive)
            Reporter:
            misha.tyulenev@mongodb.com Misha Tyulenev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: