[SERVER-2550] primary shouldn't demote itself if a secondary comes up that isn't any fresher Created: 14/Feb/11  Updated: 12/Jul/16  Resolved: 31/Mar/11

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 1.8.2, 1.9.0

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

Operating System: ALL
Participants:

 Description   

http://buildbot.mongodb.org/builders/Linux%2064-bit%20DUR%20ON/builds/223/steps/test_1/logs/stdio



 Comments   
Comment by auto [ 14/Apr/11 ]

Author:

{u'login': u'kchodorow', u'name': u'Kristina', u'email': u'kristina@10gen.com'}

Message: do not demote primary if a secondary restarts SERVER-2550
Branch: v1.8
https://github.com/mongodb/mongo/commit/0c6ed621b30252235d070ef6e724b391f5ecf7b7

Comment by Graham Hargreaves [ 12/Apr/11 ]

Can this fix be backported to 1.8 as 1.9 isn't production I believe.

Comment by auto [ 31/Mar/11 ]

Author:

{u'login': u'kchodorow', u'name': u'Kristina', u'email': u'kristina@10gen.com'}

Message: do not demote primary if a secondary restarts SERVER-2550
Branch: master
https://github.com/mongodb/mongo/commit/c71fac2af7563ad81bd07f65b318ac9f6f341da9

Comment by Kristina Chodorow (Inactive) [ 14/Feb/11 ]

Yes, there is no change in config, a secondary is just restarted.

Comment by Dwight Merriman [ 14/Feb/11 ]

originally, on a replsetreconfig, it was intentional (albneit perhaps suboptimal) that the primary might step down and then become primary again.

but if this happens when config isn't changing, that's bad. (as long as a majority stayed visible the whole time. primary steps down if it can't see a majority.)

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