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

If a snapshot read targets one shard, let the shard choose the timestamp

    • Type: Icon: Task Task
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Repl 2020-06-01, Repl 2020-06-15
    • 25

      Normally, a snapshot read outside a multi-document transaction will target multiple shards, and mongos selects a timestamp for readConcern.atClusterTime.

      If only a single shard is targeted, snapshot timestamp selection can be deferred to the mongod. Thus, sending readConcern: {level: "snapshot"} is sufficient. Implement this optimization in mongos. Capture the atClusterTime returned by the shard and store it on the cursor (for find/aggregate) and return it to the client.

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: