[SERVER-21117] Do not update term in protocol version 0 Created: 25/Oct/15  Updated: 25/Jan/17  Resolved: 26/Oct/15

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 3.2.0-rc1

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:
Depends
Related
related to SERVER-21157 confusing protocol version 0 warning ... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Repl B (10/30/15)
Participants:
Linked BF Score: 0

 Description   

I'm able to reproduce this bug by introducing a delay after the check of protocol version but before the schedule of updateTerm several lines later, so that term will be updated after the pv=0 reconfig in executor. As a result, the primary steps down because of the PV1 term in getMore request, even though it's in PV0. The time window of this bug is only several lines of code, but it did happen on Evergreen.



 Comments   
Comment by Githook User [ 26/Oct/15 ]

Author:

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

Message: SERVER-21117 Do not update term in protocol version 0
Branch: master
https://github.com/mongodb/mongo/commit/aa1e5014f13a48a9e739416681fdb94e36b1158a

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