[SERVER-46050] Use getLastAppliedOpTime rather than getHeartbeatAppliedOpTime for checking primary's position Created: 07/Feb/20  Updated: 29/Oct/23  Resolved: 10/Feb/20

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 4.2.4, 4.3.4, 4.0.17

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

Issue Links:
Backports
Related
related to SERVER-34768 Rollback can fail if run against a la... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v4.2, v4.0
Sprint: Repl 2020-02-24
Participants:

 Description   

The OpTime used to check the primary's OpTime is ahead of mine in SERVER-34768 isn't consistent between the check and the log.



 Comments   
Comment by Githook User [ 10/Feb/20 ]

Author:

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

Message: SERVER-46050 Use getLastAppliedOpTime rather than getHeartbeatAppliedOpTime for checking primary's position

(cherry picked from commit 0b73485f6dd17e52f5810229fa09ba6e406633c6)
Branch: v4.2
https://github.com/mongodb/mongo/commit/86267273e922237803d654cf368ce087b16e8c17

Comment by Githook User [ 10/Feb/20 ]

Author:

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

Message: SERVER-34768 Sync source's optime cannot be behind the syncing node even if chaining is disabled.

(cherry picked from commit 319757ebb72611fb91044a2a81d1b77a6f3729c1)

SERVER-46050 Use getLastAppliedOpTime rather than getHeartbeatAppliedOpTime for checking primary's position.
Branch: v4.0
https://github.com/mongodb/mongo/commit/1191a063fd235df4ab23bb75e59eb1e530e2e93c

Comment by Githook User [ 10/Feb/20 ]

Author:

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

Message: SERVER-46050 Use getLastAppliedOpTime rather than getHeartbeatAppliedOpTime for checking primary's position
Branch: master
https://github.com/mongodb/mongo/commit/0b73485f6dd17e52f5810229fa09ba6e406633c6

Generated at Thu Feb 08 05:10:22 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.