[SERVER-14549] Race condition can cause replSetUpdatePosition command to be sent with information about nodes that the sync source doesn't yet know about Created: 14/Jul/14  Updated: 26/Jul/14  Resolved: 16/Jul/14

Status: Closed
Project: Core Server
Component/s: Replication, Testing Infrastructure
Affects Version/s: 2.7.3
Fix Version/s: 2.7.4

Type: Bug Priority: Major - P3
Reporter: Spencer Brody (Inactive) Assignee: Spencer Brody (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Operating System: ALL
Participants:
Linked BF Score: 0

 Description   

In sync_source_feedback.cpp we first check if a handshake is needed or we need to send a sync progress update upstream. But if after that check but before sending the progress update we receive a handshake from another secondary chaining off of us, then the update we send can include information about this new chained node, but we haven't sent a handshake for that node upstream to our sync source yet.



 Comments   
Comment by Githook User [ 16/Jul/14 ]

Author:

{u'username': u'stbrody', u'name': u'Spencer T Brody', u'email': u'spencer@mongodb.com'}

Message: SERVER-14549 Don't send replSetUpdatePosition command unless all slaves have sent their handshake
Branch: master
https://github.com/mongodb/mongo/commit/a26a3ac92e2a340f211439891babec3cc54614e8

Comment by Spencer Brody (Inactive) [ 15/Jul/14 ]

https://github.com/mongodb/mongo/commit/54b5ee0c06ffc98c6b908ea3a908cf637ce4e15b

Comment by Githook User [ 14/Jul/14 ]

Author:

{u'username': u'stbrody', u'name': u'Spencer T Brody', u'email': u'spencer@mongodb.com'}

Message: SERVER-14549 Increased diagnostics for replsets_priority1.js test failure
Branch: master
https://github.com/mongodb/mongo/commit/a6cd9b2827c40069c95abf9434d2e958afa72ffd

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