[SERVER-26336] Dist lock overtake attempt fails with "Missing expected field \"electionId\"" Created: 26/Sep/16  Updated: 25/Jan/17  Resolved: 10/Oct/16

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: 3.3.14
Fix Version/s: 3.4.0-rc1

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

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Sharding 2016-10-31
Participants:
Linked BF Score: 0

 Description   

if the dist lock manager end up talking to a secondary (secondary nodes don't have the electionId field included in serverStatus).



 Comments   
Comment by Githook User [ 10/Oct/16 ]

Author:

{u'username': u'renctan', u'name': u'Randolph Tan', u'email': u'randolph@10gen.com'}

Message: SERVER-26336 Dist lock overtake attempt fails with "Missing expected field \"electionId\""

Make catalog return NotMaster if electionId is not found in the serverStatus response and have the dist lock manager retry when this happens as long as timeout has not expired.
Branch: master
https://github.com/mongodb/mongo/commit/8189acb7e18a8cb2c9564ae53c11d2e4c8ea05ae

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