[SERVER-39989] Use a config.transactions find command for the begin fetching timestamp in initial sync Created: 06/Mar/19  Updated: 29/Oct/23  Resolved: 02/Apr/19

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

Type: Task Priority: Major - P3
Reporter: Judah Schvimer Assignee: Vesselina Ratcheva (Inactive)
Resolution: Fixed Votes: 0
Labels: prepare_initial_sync
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-40018 Remove ServerTransactionsMetrics::get... Closed
Documented
is documented by DOCS-12594 Docs for SERVER-39989: Use a config.t... Closed
Related
is related to SERVER-36489 Start initial sync oplog fetching fro... Closed
is related to SERVER-36494 Prevent oplog truncation of oplog ent... Closed
is related to SERVER-39680 Maintain the oldest active transactio... Closed
Backwards Compatibility: Fully Compatible
Sprint: Repl 2019-03-25, Repl 2019-04-08
Participants:

 Description   

Initial sync will do a readConcern: local find on the config.transactions table instead of calling serverStatus after the changes in SERVER-39680 as described in SERVER-36494.



 Comments   
Comment by Githook User [ 02/Apr/19 ]

Author:

{'name': 'Vesselina Ratcheva', 'username': 'vessy-mongodb', 'email': 'vesselina.ratcheva@10gen.com'}

Message: SERVER-39989 Remove oldestActiveOplogEntryOpTime from serverStatus.transactions
Branch: master
https://github.com/mongodb/mongo/commit/5b1c663e98fe734510671b984285c8a2216b161a

Comment by Githook User [ 28/Mar/19 ]

Author:

{'name': 'Vesselina Ratcheva', 'username': 'vessy-mongodb', 'email': 'vesselina.ratcheva@10gen.com'}

Message: SERVER-39989 Use a config.transactions find command for the begin fetching optime in initial sync
Branch: master
https://github.com/mongodb/mongo/commit/62599f7cc9c1e7478eac80c5beedfc61e6f68408

Comment by Githook User [ 19/Mar/19 ]

Author:

{'name': 'Vesselina Ratcheva', 'username': 'vessy-mongodb', 'email': 'vesselina.ratcheva@10gen.com'}

Message: SERVER-39989 Store start timestamp as optime in config.transactions
Branch: master
https://github.com/mongodb/mongo/commit/ab74d3a236d05f6cab9bfbc39594ba9527920e03

Comment by Vesselina Ratcheva (Inactive) [ 18/Mar/19 ]

The above is needed for initial sync, as we need to pass in an optime for the oplog fetcher to use as its lastFetched. While there might be other solutions to that, this is definitely the simplest one.

Comment by Judah Schvimer [ 07/Mar/19 ]

As part of this ticket, please remove the field from serverStatus so we do not accidentally release it ever.

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