[SERVER-22136] Attach term metadata to UpdatePosition command Created: 11/Jan/16  Updated: 25/Jan/17  Resolved: 01/Jun/16

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 3.2.12, 3.3.8

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:
Backports
Related
related to SERVER-21979 MongoD instance came down Closed
related to SERVER-24222 Update current known primary from com... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Completed:
Sprint: Repl F (01/29/16), Repl 10 (02/19/16), Repl 11 (03/11/16), Repl 12 (04/01/16), Repl 14 (05/13/16), Repl 15 (06/03/16), Repl 2016-10-31
Participants:

 Description   

MongoDB replication protocol differs from Raft in that voters of the new primary doesn't reject fetched oplog entries from the old primary. Those stale entries will be rolled back eventually. However, if that voter reports its progress of the stale entries to the old primary before the rollback, even very rarely, the stale entries may be considered as committed. This ticket is to forward voter's current term to the old primary, making it step down.



 Comments   
Comment by Githook User [ 10/Jan/17 ]

Author:

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

Message: SERVER-22136 Attach term metadata to UpdatePosition command

(cherry picked from commit 551fb26a8ad83c64ea018594c06fbda7002e996c)

Conflicts:
src/mongo/db/dbcommands.cpp
src/mongo/db/repl/replication_coordinator_impl.cpp
src/mongo/db/repl/replication_coordinator_impl.h
src/mongo/db/repl/replication_coordinator_impl_test.cpp
src/mongo/db/repl/replication_coordinator_mock.cpp
src/mongo/db/repl/replication_coordinator_mock.h
src/mongo/db/repl/replset_commands.cpp
src/mongo/db/repl/topology_coordinator_impl.h
Branch: v3.2
https://github.com/mongodb/mongo/commit/0addb5906136dd9e6b0510c659c446751bfab680

Comment by Githook User [ 01/Jun/16 ]

Author:

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

Message: SERVER-22136 Attach term metadata to UpdatePosition command
Branch: master
https://github.com/mongodb/mongo/commit/551fb26a8ad83c64ea018594c06fbda7002e996c

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