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

Return last visible optime in repldata metadata for all commands

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.1.7
    • Component/s: Replication
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Sprint:
      RPL 8 08/31/15

      Description

      To support readAfterOptime, we can return the last visible optime in the repldata metadata. This value should be one of three things:

      • for read commands:
        • if read concern level majority was used for the read, the last visible optime should be the optime of the snapshot last used to return data for the query.
        • if read concern level local was used, the last visible optime should be the last written optime in the oplog at the time of the query's conclusion
      • for write commands:
        • the last visible optime should simply be the optime assigned to the write operation

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              matt.dannenberg Matt Dannenberg
              Reporter:
              milkie Eric Milkie
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: