[SERVER-24536] nodes can run an election while stepping down Created: 13/Jun/16  Updated: 05/Jun/17  Resolved: 08/Sep/16

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 3.2.13, 3.3.14

Type: Bug Priority: Major - P3
Reporter: Eric Milkie Assignee: Siyuan Zhou
Resolution: Done Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Duplicate
is duplicated by SERVER-25299 shut down Closed
Related
related to SERVER-27120 Increase synchronization between prod... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v3.2
Sprint: Repl 18 (08/05/16), Repl 2016-09-19
Participants:
Case:

 Description   

If a node is particularly slow, it is possible to interleave a new election attempt while completing the stepdown steps (if the election timeout expires before stepDownFinish() completes). This will result in an invariant firing.



 Comments   
Comment by Githook User [ 11/Mar/17 ]

Author:

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

Message: SERVER-24536 Nodes can run an election while stepping down.

(cherry picked from commit 11540cd54638c07708c056eb288d0b4c27b1a8e9)
Branch: v3.2
https://github.com/mongodb/mongo/commit/dedda3d6a7dfcc444fec3a67104e9382adb0d6fd

Comment by Githook User [ 08/Sep/16 ]

Author:

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

Message: SERVER-24536 Nodes can run an election while stepping down.
Branch: master
https://github.com/mongodb/mongo/commit/11540cd54638c07708c056eb288d0b4c27b1a8e9

Comment by Eric Milkie [ 29/Jul/16 ]

The invariant that fires looks like this:

Invariant failure _rsConfig.getNumMembers() == 1 && _selfIndex == 0 && _rsConfig.getMemberAt(0).isElectable() src/mongo/db/repl/replication_coordinator_impl.cpp

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