[SERVER-26666] OplogBufferCollection should save sentinels in collection Created: 17/Oct/16  Updated: 25/Jan/17  Resolved: 21/Oct/16

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 3.4.0-rc2

Type: Improvement Priority: Major - P3
Reporter: Benety Goh Assignee: Benety Goh
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Repl 2016-10-31
Participants:

 Description   

Instead of maintaining a vector of the sentinel values in memory, OplogBufferCollection should store sentinels on disk. The _id field format would be changed from:

_id: <Timestamp>

to:

_id: { ts: <Timestamp>, sentinel: <i> }

Where i is the number of sentinels with the same timestamp <Timestamp>.

This change would improve readability and make it easier to implement batched reads from the collection in SERVER-26191



 Comments   
Comment by Githook User [ 21/Oct/16 ]

Author:

{u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}

Message: SERVER-26666 OplogBufferCollection saves sentinels in collection
Branch: master
https://github.com/mongodb/mongo/commit/9700b08a0cfaafaca6bac9efa5f188b0acf0f464

Comment by Githook User [ 21/Oct/16 ]

Author:

{u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}

Message: SERVER-26666 added sentinel support to addIdToDocument
Branch: master
https://github.com/mongodb/mongo/commit/ff45562f1578bd6f2ad55c85f9c4b69dd2887130

Comment by Githook User [ 21/Oct/16 ]

Author:

{u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}

Message: SERVER-26666 store key of last popped document
Branch: master
https://github.com/mongodb/mongo/commit/73a5487793df760bc2fd1f5d02340716c41d217f

Generated at Thu Feb 08 04:12:48 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.