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

Omit cursor.atClusterTime field from read replies in transactions

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.7.0
    • Affects Version/s: None
    • Component/s: Replication
    • Labels:
      None
    • Fully Compatible
    • Repl 2020-06-29

      In SERVER-47690, we added an "atClusterTime" field to cursor replies for non-transaction snapshot reads:

      > db.runCommand({find: "collection", readConcern: {level: "snapshot"}})
      // Server selects a read timestamp and replies with it
      {
        ok: 1,
        cursor: {
          firstBatch: [...],
          id: ...,
          atClusterTime: Timestamp(...)
        }
      }
      

      As a consequence of the implementation, cursor replies to snapshot reads that are in transactions also gained "atClusterTime", and we decided that was fine. Let's change our minds and omit the field for replies to commands in transactions. It's not useful.

            Assignee:
            lingzhi.deng@mongodb.com Lingzhi Deng
            Reporter:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: