[SERVER-19554] Return last visible optime in repldata metadata for all commands Created: 23/Jul/15  Updated: 25/Mar/16  Resolved: 14/Aug/15

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 3.1.7

Type: Improvement Priority: Major - P3
Reporter: Eric Milkie Assignee: Matt Dannenberg
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by SERVER-19734 Append _currentCommittedSnapshot to r... Closed
Related
related to SERVER-19390 Wire Read After Optime support into R... Closed
related to SERVER-19964 Use last visible opTime in RS Catalog... Closed
is related to SERVER-13909 Update Command Spec to include setVer... Closed
Backwards Compatibility: Fully Compatible
Sprint: RPL 8 08/31/15
Participants:

 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


 Comments   
Comment by Githook User [ 18/Aug/15 ]

Author:

{u'username': u'dannenberg', u'name': u'matt dannenberg', u'email': u'matt.dannenberg@10gen.com'}

Message: SERVER-19554 remove leftover debug print
Branch: master
https://github.com/mongodb/mongo/commit/6e63ba952bfa9b9464ac893e7cf7a7ff784766cc

Comment by Githook User [ 14/Aug/15 ]

Author:

{u'username': u'dannenberg', u'name': u'matt dannenberg', u'email': u'matt.dannenberg@10gen.com'}

Message: SERVER-19554 populate lastOpVisible in ReplSetMetadata
Branch: master
https://github.com/mongodb/mongo/commit/b77f580a7c3aee152cb3b8dbe36e589103ad9c27

Comment by Githook User [ 12/Aug/15 ]

Author:

{u'username': u'dannenberg', u'name': u'matt dannenberg', u'email': u'matt.dannenberg@10gen.com'}

Message: SERVER-19554 merge ReplSetMetadata and ReplicationMetadata
Branch: master
https://github.com/mongodb/mongo/commit/86a3e6352eb27fd2e6115299bcec5103a830fe36

Comment by Eric Milkie [ 03/Aug/15 ]

Field name: lastOpTime

Generated at Thu Feb 08 03:51:21 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.