[SERVER-21452] heartbeat response from secondary should not schedule priority takeover Created: 13/Nov/15  Updated: 18/May/22  Resolved: 16/Nov/15

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

Type: Bug Priority: Minor - P4
Reporter: Benety Goh Assignee: Benety Goh
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-21425 stale term stepdown must be atomic Closed
is related to SERVER-66569 Allow priority takeover without direc... Open
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Repl C (11/20/15)
Participants:
Linked BF Score: 0

 Description   

The topology coordinator schedules a priority takeover whenever its internal state indicates that the existing primary has a lower priority than the current node and the term of the remote node matches its own.

When an election is taking place (due to a node with a higher priority than the current) and the current primary is in the midst of stepping down, it will not update its own term due to SERVER-21425. But the term in other nodes would have increased. The heartbeat responses from these secondaries would be sufficient to trigger a priority takeover.



 Comments   
Comment by Githook User [ 16/Nov/15 ]

Author:

{u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}

Message: SERVER-21452 hearbeat response from secondary should not schedule a priority takeover
Branch: master
https://github.com/mongodb/mongo/commit/00ab207234ebe0139f3b4d597027254c76a0a4c8

Comment by Githook User [ 13/Nov/15 ]

Author:

{u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}

Message: Revert "SERVER-21452 hearbeat response from secondary should not schedule a priority takeover"

This reverts commit bddbae79b4733dbd392215c38beccab5daa0109c.
Branch: master
https://github.com/mongodb/mongo/commit/04fbc0b6279e5a1f474d1afbfd102efb3a8c0bfd

Comment by Githook User [ 13/Nov/15 ]

Author:

{u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}

Message: SERVER-21452 hearbeat response from secondary should not schedule a priority takeover
Branch: master
https://github.com/mongodb/mongo/commit/bddbae79b4733dbd392215c38beccab5daa0109c

Comment by Githook User [ 13/Nov/15 ]

Author:

{u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}

Message: SERVER-21452 log begin and end of fetcher in bgsync
Branch: master
https://github.com/mongodb/mongo/commit/cb920169f3c3892fe3b35de30af6552c652adc00

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