[SERVER-27913] Make sure the last applied hash is corresponding to the last applied optime in bgsync start() Created: 03/Feb/17  Updated: 05/Apr/17  Resolved: 28/Feb/17

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

Type: Bug Priority: Major - P3
Reporter: Siyuan Zhou Assignee: Siyuan Zhou
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-28272 extend timeout in step_down_during_dr... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Repl 2017-03-06
Participants:

 Description   

In bgsync start(), the last applied hash is read from the disk outside mutex, but the last applied optime is read while holding the mutex. We need to make sure they are synced.

The last applied hash is only used for PV0, so this issue will go away when PV0 is deprecated.



 Comments   
Comment by Githook User [ 04/Apr/17 ]

Author:

{u'username': u'visualzhou', u'name': u'Siyuan Zhou', u'email': u'siyuan.zhou@mongodb.com'}

Message: SERVER-27120 Increase synchronization between producer/applier threads and stepdown/stepup

SERVER-27913 Make sure the last applied hash is corresponding to the last applied optime in bgsync start()

(cherry picked from commit 1da3111dc238698e4e70672b7ba260a368121e50)
Branch: v3.4
https://github.com/mongodb/mongo/commit/95c5e610ed9922a5d517c2f0109b1600096e1af2

Comment by Githook User [ 28/Feb/17 ]

Author:

{u'username': u'visualzhou', u'name': u'Siyuan Zhou', u'email': u'siyuan.zhou@mongodb.com'}

Message: SERVER-27120 Increase synchronization between producer/applier threads and stepdown/stepup

SERVER-27913 Make sure the last applied hash is corresponding to the last applied optime in bgsync start()
Branch: master
https://github.com/mongodb/mongo/commit/1da3111dc238698e4e70672b7ba260a368121e50

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