[SERVER-14624] Implement methods to validate replica set configuration changes Created: 21/Jul/14  Updated: 02/Aug/18  Resolved: 22/Jul/14

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 2.7.4

Type: Task Priority: Major - P3
Reporter: Andy Schwerin Assignee: Andy Schwerin
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

These are local checks, that a new replica set configuration is compatible with the node initiating the action and with the prior configuration of the replica set.



 Comments   
Comment by Githook User [ 22/Jul/14 ]

Author:

{u'username': u'milkie', u'name': u'Eric Milkie', u'email': u'milkie@10gen.com'}

Message: SERVER-14624 switch to using new MemberConfig methods
Branch: master
https://github.com/mongodb/mongo/commit/f2e7e52e80b4f755f49981a7b87c7870401b4cd1

Comment by Githook User [ 22/Jul/14 ]

Author:

{u'username': u'andy10gen', u'name': u'Andy Schwerin', u'email': u'schwerin@mongodb.com'}

Message: SERVER-14624 Perform checks from ReplSetConfig::legalChange in validateConfigForReconfig.
Branch: master
https://github.com/mongodb/mongo/commit/e6b3d2e012cee172066677af1ab936811282bfbb

Comment by Githook User [ 22/Jul/14 ]

Author:

{u'username': u'andy10gen', u'name': u'Andy Schwerin', u'email': u'schwerin@mongodb.com'}

Message: SERVER-14624 Local validation methods for replica set reconfiguration.

The introduced functions, repl::validateConfigForInitiate() and
repl::validateConfigForReconfig(), confirm that it is OK to initiate/reconfigure
a replica set with a given new configuration, assuming that the reconfiguration
is launched from a particular (primary) node. Unlike the validate method on
ReplicaSetConfig, these functions consider information about the current node
and the prior replica set configuration.

This implementation absorbs the local check functionality of
checkMembersUpForConfigChange(), but does not incorporate the checks from
ReplicaSetConfig::legalChange. The latter checks will be added in another
patch.
Branch: master
https://github.com/mongodb/mongo/commit/9130687a561a3020ba3f1c408fb2f6d47af46a71

Comment by Githook User [ 21/Jul/14 ]

Author:

{u'username': u'andy10gen', u'name': u'Andy Schwerin', u'email': u'schwerin@mongodb.com'}

Message: SERVER-14624 Add isInitialized() concept to ReplicaSetConfig; expose some field name constants.
Branch: master
https://github.com/mongodb/mongo/commit/fcab456c204a1c5eccfc3d700337cb5bff0621fc

Comment by Githook User [ 21/Jul/14 ]

Author:

{u'username': u'andy10gen', u'name': u'Andy Schwerin', u'email': u'schwerin@mongodb.com'}

Message: SERVER-14624 Add isElectable and getNumVotes methods to MemberConfig.
Branch: master
https://github.com/mongodb/mongo/commit/33bfa479a3ec71230aad30ccc1ab9ac55794ca20

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