[SERVER-27861] Make the failover in drain.js more reliable Created: 30/Jan/17  Updated: 04/Sep/17  Resolved: 01/Feb/17

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

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
Depends
Related
related to SERVER-27125 Arbiters in pv1 should vote no in ele... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v3.4, v3.2
Sprint: Repl 2017-02-13
Participants:
Linked BF Score: 0

 Description   

SERVER-27125 makes the election of secondary fail in drain.js, because the arbiter thought the old primary was still alive even though it had been shut down. It takes several heartbeat intervals for the arbiter to refresh its knowledge of the old primary.

Slow shutdown of the old primary also makes the failover fail.



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

Author:

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

Message: SERVER-27861 Make the failover in drain.js more reliable

(cherry picked from commit 133dbba8f749d3ac758a5365d504341331b03468)
Branch: v3.2
https://github.com/mongodb/mongo/commit/06082604a277b7fea1f8618ae300cd85a0628c4e

Comment by Siyuan Zhou [ 10/Mar/17 ]

Backport to 3.2 requested since the root cause of this issue SERVER-27125 was backported to 3.2 too. BF-4310 was reopen due to failures on 3.2. CC spencer.

Comment by Githook User [ 02/Feb/17 ]

Author:

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

Message: SERVER-27861 Make the failover in drain.js more reliable

(cherry picked from commit 133dbba8f749d3ac758a5365d504341331b03468)
Branch: v3.4
https://github.com/mongodb/mongo/commit/76c9a2c0cf6bb6d7b63ccbef96e2d31ac36014c7

Comment by Githook User [ 01/Feb/17 ]

Author:

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

Message: SERVER-27861 Make the failover in drain.js more reliable
Branch: master
https://github.com/mongodb/mongo/commit/133dbba8f749d3ac758a5365d504341331b03468

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